C and C++ has constructors and distructors, why does Java
does not have distructors?
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 |
How do you reverse a string in java?
what is the difference between a java object reference and c++ pointer?
What are the two types of exceptions in java? Which are the differences between them?
Is it compulsory to have atleast one abstract method in abstract class?
How do you add spaces in java?
What is enhanced loop in java?
What is bom encoding?
Is java a security risk?
what is overloading in java?
13 Answers Ascent, DNS, Infosys, SDA, VelTech,
Which Math method is used to calculate the absolute value of a number?
How can we access some class in another class in java?
What do you mean by exception handling in Java?