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 meant by oops concept in java?
Where is the find and replace?
What is a functional interface?
What is the synonym of string?
Why is it important to initialize a variable?
What are the advantages of java over C++?
How do you do a line break in java?
Can you pass functions in java?
What does indexof return in java?
What is finally and finalize in java?
How transient variable is different from volatile variable?
What are predefined functions?
What is the protected method modifier?
What does a void function return?
What is data type in java?