Methods and garbage collection

Posted by cc on Stack Overflow See other posts from Stack Overflow or by cc
Published on 2009-11-02T21:19:16Z Indexed on 2010/03/15 23:39 UTC
Read the original article Hit count: 143

I encountered this question in an interview:

Is an object created inside of a method eligible for garbage collection after the method is finished?

Is yes the correct answer?

© Stack Overflow or respective owner

Related posts about java

Related posts about garbage-collector