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 add() and addelement() in vector?

1301


Can we call the constructor of a class more than once for an object?

840


Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx

1839


What are class members by default?

855


Which one of the following suits the description of a string better: derived or primitive?

738


What is dynamic binding(late binding)?

805


What is a list in java?

726


Where is const variable stored?

708


Explain the difference between comparator and comparable in java?

694


What is mysql driver class name?

824


What is a module function?

809


What is arguments in java?

744


What is the symbol for space?

765


What is the format specifier?

720


What are user defined exceptions?

808