Why destructor is not used in java?
Answer / Ankush Soni
Java does not support destructors because it provides automatic garbage collection to manage memory, eliminating the need for destructors.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you compare two strings? any predefined method for this?
How listener identify that the event came from a particular object?
What is length in java?
What is sortedmap interface?
When do you create an index?
What is default locale java?
What are peerless components?
What is regex used for?
What is a pattern what is an anti pattern?
Tell us something about an iterator.
what is abstract method with example?
what are the methods in object?