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 difference betweem home interface and remote interface?
What does += mean in java?
What is flush () in java?
Is void a type?
When the constructor of a class is invoked?
What is Gang of four design patterns
What is constant in programming?
Explain the access modifiers for a class, method and variables?
What is singleton class in ruby?
Can you declare the main method as final?
What is the private method modifier?
Explain different types of wrapper classes in java?
Can we call virtual funciton in a constructor ?
What are JVM.JRE, J2EE, JNI?
What do you mean by byte code?