Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java delete instance of class

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 #delete #instance #class
ADD COMMENT
Topic
Name
2+3 =