ASSESSMENT TEST 1

The real exam has 60 questions and you are given three hours. Since this assessment exam has only 14 questions, allow yourself only 42 minutes to complete this exam. On the real exam, and on all of the exams in this book, give yourself credit only for those questions that you answer 100 percent correctly. For instance, if a question has three correct answers and you get two of the three correct, you get zero credit. There is no partial credit. Good luck!

1. Given:

          2. public class Bunnies {          3.   static int count = 0;          4.   Bunnies() {          5.     while(count < 10) new Bunnies(++count);          6.   }          7.   Bunnies(int x) { super(); }          8.   public static void main(String[] args) { ...

Get OCP Java SE 6 Programmer Practice Exams (Exam 310-065) now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.