Finalizer

Finalizer is execuated before garbage collector collects the unreferenced objects.

The finalizer has the same name with the type.

The finalizer is prefixed ~.


class Rectangle{
   ~Rectangle(){
   }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.