Welcome Guest | Sign in | Register
Garbage Collections - Discussion Page For Q.2815 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Garbage Collections > Questions and Answers

Exercise:

Section 1

Q: void start() {
A a = new A();
B b = new B();
a.s(b);
b = null; /* Line 5 */
a = null; /* Line 6 */
System.out.println("start completed"); /* Line 7 */

When is the B object, created in line 3, eligible for garbage collection? 
A. after line 5 B. after line 6
C. after line 7 D. There is no way to be absolutely certain.

Answer and Explanation

Answer:There is no way to be absolutely certain.

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.