SCJP - Sun Certified Java Programmer Practice Test

SCJP Java Garbage Collection and Memory Management

Free · Instant Results

After the following code runs, how many objects are eligible for garbage collection? String a = new String("hello"); String b = new String("world"); a = b; b = null;
▶ Start Practice Test