Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Review Questions

2.1Which of the following is not a legal identifier?

Select the one correct answer.

  1. a2z

  2. ödipus

  3. 52pickup

  4. _class

  5. ca$h

2.2Which statement is true?

Select the one correct answer.

  1. new and delete are keywords in the Java language.

  2. try, catch, and thrown are keywords in the Java language.

  3. static, unsigned, and long are keywords in the Java language.

  4. exit, class, and while are keywords in the Java language.

  5. return, goto, and default are keywords in the Java language.

  6. for, while, and next are keywords in the Java language.

2.3Which statement about the following comment is true?
/* // */

Select the one correct answer.

  1. The comment is not valid. The multiple-line comment (/* ... */) does not end correctly, since the comment-end sequence */ is a part of the single-line comment (// ...).

  2. It is a completely valid comment. The // part is ignored by the compiler.

  3. This combination of comments is illegal, and will result in a compile time error.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint