finalize() method?

Answer Posted / guest

Every class Inherits the finalize() from
java.lang.class.this method called by Garbage collector
for clean up processing(like Realesing memory Resorces,file
closing,socket closing..) for any unreachble object before
destroing the object .

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a parameter example?

730


Can abstract class have private constructor?

714


Can we create our own daemon thread?

736


How to sort elements in a parallel array in java?

685


How do we access static members in java?

842


What is overloading and overriding in java?

919


Does treeset use compareto?

743


In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1090


When should I use singleton pattern?

808


What is ascii code?

836


What are features of java?

775


What is a predicate method?

754


What is java jit compilers?

759


What is the syntax and characteristics of a lambda expression?

804


Why put method is used?

768