my dog learned polymorphism
The moose likes Mock Exam Errata and the fly likes Error in SJCP 5 Learnkey Bonus exam, finalize() / garbage collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Reply Bookmark "Error in SJCP 5 Learnkey Bonus exam, finalize() / garbage collection" Watch "Error in SJCP 5 Learnkey Bonus exam, finalize() / garbage collection" New topic
Author

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

Wolfgang Schwendt
Greenhorn

Joined: Jan 29, 2009
Posts: 8
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

Joined: Sep 26, 2008
Posts: 232
your answer is corrected
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Error in SJCP 5 Learnkey Bonus exam, finalize() / garbage collection
 
Similar Threads
GC question 2
Master exam doubt
Garbage collection..
JVM
que on GC