PDA

View Full Version : Unset a variable?



AmenKa
09-26-2008, 03:14 PM
Hey, is it possible to unset a variable in Java like it is in PHP? I assume it is possible to free up memory...

Twey
09-26-2008, 07:05 PM
No. That's not the purpose of it in PHP, either, in most cases. Both languages are garbage-collected: once all references to an object go out of scope, the object is marked as trash, and can be garbage-collected at the runtime's next convenience.