Garbage collection
unknown
plain_text
2 years ago
302 B
7
Indexable
public class GarbageCollection { public void finalize() { System.out.println("garbage collection is successfully initiated"); } public static void main(String[] args) { GarbageCollection n1=new GarbageCollection(); n1=null; System.gc(); } }
Editor is loading...
Leave a Comment