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 java is better then .net?
What is meant by Encapsulation? Can you write a class to explain encapsulation?
What is the java project architecture?
Which is fastest collection in java?
If your team member writes code with lots of static variables and static methods, will it cause any side effects?
How to disable caching on back button of the browser?
Is it possible for yielded thread to get chance for its execution again ?
How many bits are allocated to represent character of character sets - Unicode, ASCII, UTF-16, UTF-8?
could you run the java program without main method?
How do you declare a destructor in java?
Difference between throw and throws?
Explain about fail safe iterators in java?