O'Reilly logo

Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) by Marcus Green, Bill Brogden

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

Exam Prep Practice Questions

Question 1
Which of the following class declarations use modifier keywords incorrectly? [Check all correct answers.]
  • A. public synchronized class FastClass extends Thread

  • B. private protected class FastClass

  • C. public abstract class FastClass

  • D. class FastClass extends Thread

A1: Answers A and B are correct. The synchronized, protected, and private keywords cannot be applied to classes. Answer C is incorrect because the usage is proper; the abstract keyword indicates that there is at least one abstract method in the class. ...

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