Professional Documents
Culture Documents
D
D
----------------------------------------------------------------
2) finalize()-It is a method.
->It is similar to destructor function in C++.
->The garbarge collected object can be reclaimed using finalize() method.
->It is called by gc()method [gc-garbage collector].
protected void finalize()
{-----}
3) finally - keyword
->It is used in exception handling block.
->It is automatically work even if the corresponding catch block is matched or
not.
->It mainly used for closing connection,Streams.