Seetharaman Venkatasamy wrote:Well, Actually there are 5 objects created, and only 1 object is eligible for GC.
Note* but end of the method , all the above 5 objects will be Garbage Collected.
Hama Kamal wrote:
Question:
How many objects were created?
How many object(objects) is(are) eligible for GC?
4
1