O'Reilly logo

Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition by Rolf W. Rasmussen, Khalid A. Mughal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Review Questions

2.1 Which of the following is not a legal identifier?

Select the one correct answer.

  1. a2z

  2. ödipus

  3. 52pickup

  4. _class

  5. ca$h

  6. total#

2.2 Which 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.3 Is this a complete and legal comment?
/* // */

Select the one correct answer.

  1. No, the block comment (/* ... */) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required