Pointers to garbage collection

I understand that an object becomes eligible for garbage collection when no references to it exist anymore. So it's good to nullify refs as soon as you're done with them. But is it useful to nullify local variables just before they go out of scope? I heard from more experienced J2ME developers it is because garbage collectors in jvms on devices are missing 'something'. Any pointers to where this is explained in more detail?

Thanks

Mark

[462 byte] By [hoogenma] at [2007-11-27 9:52:34]
# 1
check out these articles... http://www.javaperformancetuning.com/tips/j2me.shtml
suparenoa at 2007-7-13 0:21:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

Thanks supareno for the link.

A quote: "Explicitly set references to null when they are no longer needed to ensure that the objects can be garbage collected. " Does this mean that in the following code the object will always be referenced, and thus never garbage collected?

public Object aMethod() {

Object x = getARefToAnObject();

x.doSomething();

return x;

}

Mark

hoogenma at 2007-7-13 0:21:39 > top of Java-index,Java Mobility Forums,Java ME Technologies...