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

Answers were Sorted based on User's Feedback



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

Answer / ranganathkini

at least once during its lifetime

Is This Answer Correct ?    5 Yes 0 No

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

Answer / 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

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

Answer / leo zhao

Only once.

Is This Answer Correct ?    4 Yes 0 No

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

Answer / ravikiran(aptech mumbai)

only once before garbage collection or it may depend on the
garbage collector.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a literal coding?

0 Answers  


In Java list the methods that can be overridden?

0 Answers   Accenture,


How multipleInheritance is possible in java?

18 Answers   Satyam,


What is Interface?

8 Answers   BMC,


Can you declare the main method as final?

0 Answers  






What are 4 pillers of object orinted programming?

0 Answers  


Explain the public class modifier?

0 Answers  


Is final static java?

0 Answers  


What means public static?

0 Answers  


What is the size of int?

0 Answers  


What is use of arraylist in java?

0 Answers  


What are the 3 types of loops in java?

0 Answers  


Categories