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 type parameter in java?
What is token in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
Is vector ordered in java?
What are the 8 primitive data types in java?
Difference between string, string builder, and string buffer?
How are the elements of a gridbaglayout organized?
Can list be null in java?
What do you mean by exception handling in Java?
What do negative exponents mean?
What is a line break example?
What is the Concept of Encapsulation in OOPS
How do you use compareto?
Is a copy constructor?
What is the major difference between linkedlist and arraylist?