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
Can anonymous class have constructor?
What do you mean by garbage collection used in java?
What is the difference between processes and threads?
Give me some null interfaces in java?
Difference between a process and a program?
What is backdrop?
What is a boolean field?
Why we use protected in java?
What are the different ways of creating thread?
Is java se free?
Why javac is not recognized?
Where pragma is used?
Is 0 an irrational number?
What is an i/o filter?
What is the concatenation operator in java?