C and C++ has constructors and distructors, why does Java
does not have distructors?



C and C++ has constructors and distructors, why does Java does not have distructors?..

Answer / 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

More Core Java Interview Questions

Define canvas?

0 Answers  


How do you sort a string in java?

0 Answers  


How can we use primitive data types as objects?

0 Answers  


What are the five major types of reference sources?

0 Answers  


How do you create a method in java?

0 Answers  






How to instantiate member inner class?

0 Answers  


What are the advantages of encapsulation in java?

0 Answers  


Why to use nested classes in java?

0 Answers  


Can we restart a thread already started in java?

0 Answers  


What is a buffer in computer?

0 Answers  


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

0 Answers  


What is the meaning of nullable?

0 Answers  


Categories