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


Please Help Members By Posting Answers For Below Questions

What is the functionability stubs and skeletons?

912


What is a variable simple definition?

804


Can we use catch statement for checked exceptions?

757


What is a boolean structure?

792


How can you set the applet size?

827


What is the independent variable in an experiment?

750


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2210


What is the default value of float and double datatype in java?

776


How do you join strings in java?

763


Are functions objects in java?

808


What is difference between == equals () and compareto () method?

752


What is foreach loop in java?

761


What is the java project architecture?

2006


Explain the different forms of polymorphism?

780


What are new features introduced with java 8 ?

744