C and C++ has constructors and distructors, why does Java
does not have distructors?
Answer Posted / sandesh magdum
Because java has automatic garbage collection feature and java
does not let you illegally or accidentally release memory
occupied by an object.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
What is a double vs float?
Why charat is used in java?
What is collection class in java? List down its methods and interfaces.
Is null keyword in java?
What is the concept of multithreading?
How to overcome the exception object reference not set to an instance of object?
Explain the difference between static and dynamic binding in java?
What is the difference between declaration and definition in java?
How many bytes is double?
Which list is sorted in java?
What is the list interface in java programming?
What does indexof mean?
What is local declaration?
Explain the difference between an Interface and an Abstract class?
What is the purpose of using the java bean?