|
|
Authorized user can see question and answers. Please log in or sign up. 
|
#75. Given: 1. class Bar { } 1. class Test { 2. Bar doBar() { 3. Bar b = new Bar(); 4. return b; 5. } 6. public static void main (String args []) { 7. Test t = new Test(); 8. Bar newBar = t.doBar(); 9. System. out. println(“newBar” ); 10. newBar = new Bar(); 11. System. out. println(“finishing” ); 12. } 13. }
At what point is the Bar object, created on line 3, eligible for garbage collection?
Show comments for this question (1)
Add comments
Link to this question
|
|
|
|
gen. 0.073
|
Server date 06:26 10-01-2009
|
Developed by Zip © 2006
|
|
 |
|
|