File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in SJCP 5 Learnkey Bonus exam, finalize() / garbage collection

 
Wolfgang Schwendt
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an error in question 12 of the Learnkey Bonus exam for SJCP 5.



While the code represented by "// do time consuming and memory intensive stuff " is executing, which are true regarding the three Phoenix objects we know have been created? (Choose all that apply).

A .No Phonix object are eligible for GC.
B. Atleast one Phoenix object is eligible for GC
C. Atleast two Phoenix object are eligible for GC
D .The JVM could have invoked the finalize() method at least once.
E .The JVM could have invoked the finalize() method more than once total for these three objects
F. The JVM could have invoked the finalize() method more than twice total for these three objects
G. this code will not compile



Solution according to Learnkey Exam: B and D are correct.

However, the real solution is: B, D, and E is correct.

See the following thread for a more detailed discussion and an example program which verifies the described error:
http://www.coderanch.com/t/423110/Programmer-Certification-SCJP/certification/Garbage-collection


 
Juee Doo
Ranch Hand
Posts: 232
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your answer is corrected
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic