posted 24 years ago
hey!
concept of finalize() method is well understood, but how do we actually go about using it.
Firstly it is protected, so how do i use it.
when i declare it in my class like:
protected void finalize() {
try{
System.out.println("Garbage to be collected");
}
catch(Throwable t)
{}
it gives me error.
please help me with this.
Ruchi<br />_ _ ___________________________ _ <br />Tata Consultancy Services,<br />New Delhi, India