Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Difference between Clone and Refrence

  Asked By: Clifton    Date: Oct 16    Category: Java    Views: 616

I want to know the difference between a clone of an
object and Creating a refrence of that object.



1 Answer Found

Answer #1    Answered By: Mamie Wallace     Answered On: Oct 16

A reference is a pointer refering to the same memory space. A clone
is to create a new object  and copy the content of the exsiting
object to the new object.

Didn't find what you were looking for? Find more on Difference between Clone and Refrence Or get search suggestion and latest updates.