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

Hi friends i want display Triangle shap stars(*) please can tell me any one java code logic? * *** ***** ******* Like this

2 Answers   TCS, NIIT,


Is java supports multiple inheritance? explain?

12 Answers   Inforica, BUET,


how can u apply shallow cloning and deep cloning to create object?

1 Answers   Yash Technologies,


what is the difference between static block and static method

19 Answers   Huawei,


How 'java' got its name and what it stands for?

11 Answers   Wipro,






how to java plateform independent?

5 Answers   TCS,


whatis Home interface and Remoteinterface? with example?

0 Answers   Saksoft,


what is difference between abstract and interface? can i give real time example for the two topics?

7 Answers  


what are depricated methods ?

5 Answers   Satyam,


what is the difference between applet and swing and gui application in java . What we do with the collections set and list interface

2 Answers   CTS, Phoenix Technologies,


does core java and j2se both are same?

5 Answers  


Ducking is automatic in checked exception?True or false

2 Answers  






Categories