In Java, I\'ve done things like the following without thinking much about it:
public class Main { public void run() { // ... } public s
If an object method is being executed, it means someone is in possession of that reference. So no, an object can't be GC'd while a method is being executed.