Why is the garbage collector not working in Greenfoot? There is no longer a reference to the object, but it still continues to live and is not removed by the garbage collector. By default (by default) in Greenfoot, objects are created in the prepare () method and, according to the rules of the Java language, references are lost at the end of the method and the objects must be removed by the garbage collector. But they live fine for themselves. What's the focus?