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 are the 3 types of control structures?

0 Answers  


What is a Transient Object?

0 Answers   InfoAxon Technologies,


What are different access specifiers in java? Explain

0 Answers  


How many types of java are there?

0 Answers  


1.what is the exact difference between applet and frame? 2.Do we use main method in frames?

5 Answers  






What is the base class in java from which all classes are derived?

0 Answers  


Is string a datatype?

0 Answers  


What is the difference between length and length() method in java?

0 Answers  


Is an object null?

0 Answers  


how to deploy apache tomcat server to weblogic server in java

0 Answers   IBM,


What are examples of modifiers?

0 Answers  


Can we serialize singleton class?

0 Answers  


Categories