Hi,
I've been using leJOS for a little while now, but I'm not sure I fully understand the effects of not having a garbage collector. Is declaring a variable inside a method bad practice? I thought that this could be the case because new memory would be allocated each time the method is called. Or does the memory get released when the variable goes out of scope? Does the same apply when declaring a variable inside a "for loop" for example?

I hope someone can clear this up for me.

TIA

Tom

Reply via email to