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

What is difference between static and final?

550


What are parameters in a method?

581


Is java map thread safe?

485


How do you convert int to char in java?

569


What is the basic concept of java?

529






extending thread class or implementing runnable interface. Which is better? : Java thread

559


What is difference between class and object in java?

521


What is java util function?

508


difference between byte stream class and character stream class?

4075


What is static and final keyword in java?

571


What is string in java? String is a data type?

569


enlist some features of jdk.

553


why not override thread to make a runnable? : Java thread

550


What is the function of compareto in java?

581


What are the differences between checked exception and unchecked exception?

521