Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java destroy object

Java performs gc by itself, no need to do it manually.

Can also set to null.
Then there are no references anymore and the object will become
eligible for Garbage Collection.
GC will automatically remove the object from the heap.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #destroy #object
ADD COMMENT
Topic
Name
7+2 =