Hey, is it possible to unset a variable in Java like it is in PHP? I assume it is possible to free up memory...
Printable View
Hey, is it possible to unset a variable in Java like it is in PHP? I assume it is possible to free up memory...
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.