answersLogoWhite

0

AMIT KUMAR

  • 3th Nov , 2014
Java does not support destructors, since java supports the concept of garbage collection,hence the garbage collector is used to automatically free the space which has occupied by the program while running.Garbage collector calls the finalize() method which is defined in the object class. finalize() method is called once for each object.
User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

Is destructor allowed in java?

No. Java does not support the concept of Destructors like C


How does java support the concept of destructer in java?

In Java, Java does support the concept of destructor, it's done via special method finalize.


What does java not support?

Java does not support multiple inheritance.......


What do you use instead of a destructor in java?

Hi, This is suneetha. We use Finalize() method in java instead of destructors. Finalize() is used to release the memory before the garabage collection takes place.


Does a DSI have java?

No it does not support Java


Does Java support copy constructor?

No. Java does not support copy constructor


Does java support call by reference?

No , Java does not support call by reference.


Does the G1's browser support Java and Flash?

No. I have read that it will support Java. I believe that it does not support flash ATM.


What are the background pointers in java?

Java does not support pointers.


What is Java Support Systems?

Java support system includes: · Applets · Servlets · Java Beans · EJB · JSP · XML · SOAP · CORBA


Can you use pointers in java?

Java does not support Pointers and hence you cannot use it in Java.


What are destructor in java?

Destructors in Java are called finalizers. Every class can define a finalize() method that will get called automatically by the garbage-collector when an instance of the class gets garbage-collected. Finalizers are not guaranteed to get called, as the instance might never get collected.