How many times garbage collector will invoke an object?s
finalize() method?

Answer Posted / rakesh kumar jha

whenever object is go beyond the reachable gc invoked the
object by the finalize method, but it should be atleast
once in life cycle.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which method must be implemented by all threads?

715


How can we create a thread in java?

581


Is an integer an object?

511


What are the core java topics?

558


What is a boolean flag in java?

559






I want to persist data of objects for later use. What is the best approach to do so?

587


What are the methods of object class ?

557


Can a constructor be private and how are this() and super() method used with constructor?

518


What do you understand by final value?

580


What are the elements of java?

547


Why is the singleton pattern considered to be an anti pattern?

465


What is the memory leak in java?

520


What is close method? How it's different from Finalize & Dispose?

553


Is double bigger than float?

535


What is the difference between jfc & wfc?

587