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

why do we use interface in java?

5 Answers  


Which Math method is used to calculate the absolute value of a number?

3 Answers   Accenture,


When do you call copy constructor?

0 Answers   Tavant Technologies, Virtusa,


Does java allow default arguments?

0 Answers  


Can a Byte object be cast to a double value?

3 Answers   KO,






How listener identify that the event came from a particular object?

0 Answers  


What are the two basic ways in which classes that can be run as threads may be defined?

0 Answers  


Are global variables initialized to zero?

0 Answers  


what is the difference between String s="hello"; and String s=new String("hello");?

3 Answers  


Can constructor be synchronized?

0 Answers  


Difference between Web-based applications,Client- Server applications and Distributed applications?

3 Answers   Infosys,


Is java an open source?

0 Answers  


Categories