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

What is the frontend and backedn in Java?

3 Answers   TCS,


Can one thread block the other thread?

1 Answers  


What are structs in java?

1 Answers  


Does list allow duplicates in java?

1 Answers  


Define class?

1 Answers  


i would like to attend for an interview of datalab technologies company i want to know the pattern of imnterview.

0 Answers  


Why main function is static?

1 Answers   MCN Solutions,


What does java edition mean?

1 Answers  


What are daemon Threads in java?

1 Answers   Impetus,


What is the difference between stringbuffer and stringbuilder class?

1 Answers  


what is mean by ooad? where we are using? can you tell me any real time example?

1 Answers   Eka Software,


Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?

1 Answers  


Categories