Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is object cloning

Answers were Sorted based on User's Feedback



What is object cloning..

Answer / amar_java

Object Cloning is a process to copying all fields from one
object to a new object

Is This Answer Correct ?    5 Yes 0 No

What is object cloning..

Answer / anurag sharma

loning is a process to copying all fields from one
object

Is This Answer Correct ?    2 Yes 0 No

What is object cloning..

Answer / me

A bit of background information. Because the way memory
works (long story), an object consists of two things, the
reference which is basically a pointer, or a label that is
used to access the object, and the actual object data,
which is stored elsewhere (search Google for explanations
on memory stacks and heaps).

If you would simply copy an object, you would only copy the
reference. So what you end up with, are two references that
point to exactly the same data. When you change the
original object, the copy object gets changed as well, and
visa versa.

If that's not what you want, you have to clone the object,
which means you actually create a new object in memory,
that holds a copy of the data of the original object, and
you also create a new reference that points to this new
object.

When you then change some value in the original object, the
copy object stays unchanged.

Is This Answer Correct ?    1 Yes 0 No

What is object cloning..

Answer / nashiinformaticssolutions

An ability to recreate an object entirely similar to an existing object is known as Object Cloning in Java. Java provides a clone() method to clone a current object offering the same functionality as the original object.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What are the features of javascript?

0 Answers  


How to create function in JavaScript?

0 Answers  


why is java platform indipedence

2 Answers   HCL,


What is webpack used for?

0 Answers  


Can you have a function within a function in javascript?

0 Answers  


what is runnable interface

1 Answers  


What does isNaN function do?

2 Answers   Satyam,


What is closure?

0 Answers  


What's the date object using javascript?

0 Answers  


What would you use javascript for?

0 Answers  


What is the difference between push() and concat() in javascript?

0 Answers  


How can a Javascript code redirect the user to a different page?

0 Answers  


Categories