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 is sizeof not a function?
Explain the importance of finally block in java?
explain me with a code snippet about the generation and handling of null point exceptions.
How can we make a class singleton?
Differentiate between class and structure.
Infinite loop using while ?
Explain about interrupt() method of thread class ?
What is difference between adapter class and listener?
What is meant by method?
Is it compulsory for a try block to be followed by a catch block in java for exception handling?
What is the new line character?
What is the core java?