deletee obj java code example
Example: delete object java
Object a = new Object();a = null;// after this,if there is no reference to the object, // it will be deleted by the garbage collector
Object a = new Object();a = null;// after this,if there is no reference to the object, // it will be deleted by the garbage collector