Object a = new Object();a = null;// after this,if there is no reference to the object, // it will be deleted by the garbage collector

delete object java

Similar Code Examples