Lukasz Picur

Greenhorn
+ Follow
since Nov 22, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Lukasz Picur

I think the correct explanations is like this:

object referenced by c1 and c2 (before assingment to c3) formed so called "island", which means a group of object referencing one to another, but none of them cannot be reached out of the "island".

JVM treats this object group as eligible to garbage collection, so the answer is 2.

Correct me if I'm wrong