English Русский Contacts Site map Add to favorites
Registration
Login
Master braindump list
New braindumps
Submit a dump
Get latest dump
braindumps.com.ua
flame
3COM (7)
Adobe (1)
BEA (1)
Checkpoint (22)
Cisco (20)
Citrix (21)
CIW (15)
Compaq (0)
CompTIA (51)
CWNA (2)
EMC (2)
Exin (4)
GEJOS (4)
HDI (1)
HP (4)
IBM (13)
Juniper (5)
Linux Prof Institute (LPI) (2)
Lotus (11)
Microsoft (2462)
Network Appliance (2)
Novell (16)
Oracle (423)
PLSQL (1)
PMI (5)
SAS (1)
Sun (87)
Teradata (4)
Login:
Password:
RSS feed

Contacts
Certification links
Links
Authorized users can post comments.
Please log in or sign up.

back to list
Back to main forum
Sun Certified Programmer for Java 2 Platform 1.4 

АвторSubject: Q75
written 28 February 2008 23:33   View profile Jonnik  Edit/Delete  Answer  Answer with quotation
Explanation:
Reference: http://java.sun.com/docs/books/tutorial/java/data/garbagecollection.html According to sun the object will be eligible for garbage collection only when another objects reference is passed to it since the original value is dropped or when the object is set to null provided if all the reference of the object is dropped. In the above method the Bar object i.e b created in line 3 is returned to main method where its value is not reset using another object or it is not indirectly set to null thro another object so the object will be eligib le for garbage collection only after line 11, when main() completes.
Incorrect Answers:
1: At line 8 a new Bar object is created but the object’s reference is not made equal to b object created at line 3 or b is not indirectly set to null value for being eligible for garbage collection. thus this is not true.
2: At line 10 another Bar object is created but the object’s reference is not made equal to b object created at line 3 or b is not indirectly set to null value for being eligible for garbage collection. thus this is not true.
3: After line 4 when doBar completes the method returns the value of object b created at line 3 to the main method thus b is not eligible for garbage collection.

Current tread:
back to list

Q75 - Go to question 23:33 28.02.08

back to list
Up ^ gen. 0.056 Server date 11:05 09-01-2009 Developed by Zip © 2006 Up ^
Forum
Start online exam simulation
Master braindump
User braindumps
Main forum
Question comments