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 different types of expressions?

0 Answers  


What is the list interface?

0 Answers  


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

0 Answers  


What are different types of constants?

0 Answers  


what is the Diff. between Access Specifiers and Access Modifiers?

39 Answers   BMC, Cyber Shot, Infosys, VTS, Wipro,






what is the difference between Java Command Line and C command Line?

2 Answers  


What are examples of modifiers?

0 Answers  


Explain the concept of hashtables?

0 Answers  


what is meta-Inf?

2 Answers   Polaris,


What are the limitations for static method?

3 Answers   Greenwood,


byte a=5; byte b=5; byte c=a+b; System.out.println(c); whats the o/p?

7 Answers   NIIT, Wipro,


Is jdk required on each machine to run a java program?

0 Answers  


Categories