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

what is difference betwenn Access Specifier and Access Modifier ????

2 Answers  

What is the middleware?

2 Answers  

Which of the following is not an isolation level in the JDBC

0 Answers   CTS,

How can you debug the Java code?

6 Answers   BirlaSoft,

What is the exact difference in between Unicast and Multicast object?

0 Answers  

Difference between overloading and Overriding. <Giving a confusing example to test the concept.> (also asked in PA Consultancy Group,iflex,Value chain,IBM,CTS,Accenture, Tarang>

12 Answers   Tarang, Accenture, CTS, IBM, iFlex, Symphony, Extensio, PA Consulting,

v-model life cycle

0 Answers   Virtusa,

what is jdk1.5 features?

6 Answers   Virtusa, AMS,

what should do when using multiple catch() block & what should never do for the same?

1 Answers  

java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?

1 Answers   Naaptol,

what is Hashmap & Hashtable wirh example?

5 Answers   CTS, Saksoft,

what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????

0 Answers   HCL, SAP Labs, Vital Soft,