answersLogoWhite

0


Best Answer

It allows you to keep the original object untouched. In Java, objects are accessed by reference meaning that when you pass it in a function, anything done to it in the function modifies the original object directly.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of object cloning in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Important points of oops vs pop in java?

java is object oriented language.it's a platform independent.in java we don't use pointers


What is a java object?

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


How oops concept is implemented in java?

OOP stands for Object Oriented Programming. Everything in Java is an Object. Any class you create extends the Object class by default thereby making everything in Java an object. Moreover, you can use features like Inheritance, Polymorphism, Encapsulation etc which are OOP concepts thereby making Java an Object Oriented Programming Language


What is the difference between cloning and seriliazation in java?

Cloning is the act of creating a new copy of an object. The new object should store all the same information as the original, but the physical data should be different.Serialization is the act of turning an Object into an array of bytes which represent the data. This is used mainly for storing objects to disk. An Object which implements the Serializable interface can be used by ObjectInputStream and ObjectOutputStream to easily hook into the java.io package.


This key word causes an object to be created in memory?

To instantiate a object, we use the new keyword in Java, which creates an object in memory.


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 people object to cloning?

Some people object to cloning because it allows scientists to "act like God" in the manipulation of living organisms.


Why you start java program by class?

without class non of the folder can run so the java program should start in class we can use the class without object in java


Difference object oriented language object based language?

object base: that are not use subtype or inheritence is called object base. object oriented: that use subtypes and inheritence is called object oriented e.g vb.net and java.


Can you initialize an object without constructor in java?

No. if you wish to create an object that you plan on using in a java program then the answer is NO. You cannot initialize an object of a Java class without calling the constructor.


Why is Java called an Object Oriented Programming Language?

Actually java is not purely object oriented.because we can use the primitive data types in Java.In java all those things or considered as classes and objects .So we are called java is an object oriented programming language...


Did java oriented language works on object?

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