answersLogoWhite

0

The Java Virtual Machine takes care of all the actual deletion for you. Once an object no longer has any references left, the garbage collector will come along and clear up that memory automatically.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Is the java is procedural language?

Java is an Object Oriented language not a procedural language


What language is completely object oriented c plus plus or java?

Java is the complete object oriented Programming Language as every thing in java is an object,


Why do you require a object in java but not in C?

Because Java is an object-oriented language and C is a procedural language.


Did java oriented language works on object?

Java is an object oriented language, and it works with classes and objects.


What is a java object?

A java object is a collection of methods and properties defined in the Java programming language.


Why might one need a sting array object in Java?

One might need a sting array object in Java to use protective measures on one's computer to prevent one's program from writing outside the bounds of the array.


Which type of language is java?

Java is truly object oriented programming language


Why you are preferring java?

java is platform independent language and open source. java is object oriented language.


Can the return type of a method be an array?

Depends on the language. For Java, yes.


Can an array contain elements of an object type?

Yes. An array of arrays is nothing more than a multi-dimensional array.


In java is A string the same thing as a char?

No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.No.A char is a single Unicode character. It is stored as a primitive (i.e., non-object) data. A string can be considered as an array of chars - Java stores it as an object.


What are benefits of array in java?

array example in java