When finalize method is called?
Answers were Sorted based on User's Feedback
Answer / janet
finalize() method is used just before and object is
destroyed and can be called just prior to garbage
collection.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravikiran(aptech mumbai)
finalize method is used to conserve the resources before
garbage collection
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sourabh
finalizr method call just before the garbage collector
| Is This Answer Correct ? | 0 Yes | 0 No |
There is a Banking application. It has 2 types of account, Savings and Current. Write a method calculateInterest by passing an ArrayList of these account objects and calculate Interest accordingly. Write code for this situation
Explain the private field modifier?
What is the difference between member variables initialization and assignment in a constructor?
how to create daemon thread in java?
How do I remove a character from a string in java?
List the interfaces which extends collection interface?
What is abstract class constructor called?
Explain the difference between treeset and treemap in java?
Can a static class implement an interface?
Explain a situation where finally block will not be executed?
Why java is considered dynamic?
What is the covariant return type?