PRACTICE EXAM 2

The real exam has 60 questions and you are given three hours to complete it. Use the same time limits for 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. Concerning Java’s Garbage Collector (GC), which are true? (Choose all that apply.)

A. If Object X has a reference to Object Y, then Object Y cannot be GCed.

B. A Java program can request that the GC runs, but such a request does NOT guarantee that the GC will actually run.

C. If the GC decides to delete an object, and if ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.