finalize() method?

Answer Posted / harika.thota001@gmail.com

Before an object is garbage collected, the runtime system calls its finalize() method. The intent is for finalize() to release system resources such as open files or open sockets before getting collected.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you break a loop?

566


What is the destroy method?

592


What is a byte array?

588


Explain about anonymous inner classes ?

580


What is a method header?

550






How do you add an element to a hashset in java?

492


What happens if a constructor is declared private?

537


What is a blocking method in Java?

606


What is a platform?

544


Explain about map interface in java?

595


What is meant by class loader? How many types are there? When will we use them?

509


What data type is true or false?

577


What is called module?

570


Explain some best practices you would apply while using collection in java?

569


What is skeleton and stub? What is the purpose of those?

540