How many times garbage collector will invoke an object?s
finalize() method?
Answers were Sorted based on User's Feedback
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 |
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 |
why do we use interface in java?
Which Math method is used to calculate the absolute value of a number?
When do you call copy constructor?
0 Answers Tavant Technologies, Virtusa,
Does java allow default arguments?
Can a Byte object be cast to a double value?
How listener identify that the event came from a particular object?
What are the two basic ways in which classes that can be run as threads may be defined?
Are global variables initialized to zero?
what is the difference between String s="hello"; and String s=new String("hello");?
Can constructor be synchronized?
Difference between Web-based applications,Client- Server applications and Distributed applications?
Is java an open source?