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

16y 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 an array contain elements of an object type?

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


Can the return type of a method be an array?

Depends on the language. For Java, yes.


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.


How many data types can the elements of an array have?

Depends on your language. Assuming java: If you make it an Object[] then it can contain any object For primitive types you must either make a primitive type array, ie double[], char[] which can contain only those primitives, or creater an Object[] and use primitive wrapper objects ie java.lang.Integer etc.