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 backdrop?
When a byte datatype is used?
What are reference variables in java?
Explain the difference between extends thread vs implements runnable in java?
Why java is said to be pass-by-value ?
Can a class have an interface?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?
Explain heap sort?
Differentiate storage classes on the basis of their scope?
Explain reverse a linked list iterative solution in java?
What is the difference between post and put?
How the interruptible method gets implemented?
Name container classes in java programming?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
Is a boolean variable?