answersLogoWhite

0

Do you have destructer in java?

Updated: 8/18/2019
User Avatar

Wiki User

14y ago

Best Answer

No. Memory management is handled automatically in Java, so there is no need for a destructor.

Also, you can use a finalize block of code where you can assign all large objects to null. This can significantly aid the memory management a.k.a garbage collection done by the JVM.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Do you have destructer in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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 Indonesian island is Jakarta on?

java


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


What do you call java and javascript?

Well you get java as java and javascript as iava.


Supermost package of java?

The supermost package of Java is the "java" package.


What country is known for its java coffee in the Java sea?

Java coffee is made in Java, which is an island - part of INDONESIA


What is java 7?

Java 7 is the most current version of Java. Many movies and games use Java.


What is java's purpose on my PC?

Programs that are specifically designed with Java require a Java runtime to work on a computer. (In the case of Java, the runtime is called "Java Virtual Machine".) If you have any such program, you need to have Java.