Question : How may Objects are created within main(), how many are eligible for garbage collection?
I am preparing for
SCJP exam and I was going thru this garbage collection Q and I am not sure what is correct. Can some help me with this question?
The book's answer is five object were created and two are eligible for GC. still don't understand how?