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 the difference b/w Arry.copy() and array.clone()
method?

Answers were Sorted based on User's Feedback



What is the difference b/w Arry.copy() and array.clone() method?..

Answer / vishalakshi patil

Array.copy() Copies a range of elements in one Array to
another Array and performs type casting and boxing as
required. Deep Copy

Return type Void

The Array.clone() is of the same Type as the original Array.

Shallow copy. Return type System.object

Is This Answer Correct ?    3 Yes 1 No

What is the difference b/w Arry.copy() and array.clone() method?..

Answer / chauhan rakesh botad

Array.Copy() copies all contents of original array to
another array by specied index of original array while Clone
creates a shallow copy. Array.Copy() copies Data as well as
structure while Clone copies data only.

Is This Answer Correct ?    2 Yes 0 No

What is the difference b/w Arry.copy() and array.clone() method?..

Answer / rasik bihari

Array.Copy() is deep copy and Array.clone() is shallow copy.

Is This Answer Correct ?    2 Yes 1 No

What is the difference b/w Arry.copy() and array.clone() method?..

Answer / chauhan rakesh botad

System.Array.copyto() will perform a deep copy of array
while system.array.Clone() will perform shalow copy of the
array.Shalow copy will simply copy the elements of the array
where as an Deep copy will copy the elements as well as any
referenced elements present in the array.

Is This Answer Correct ?    1 Yes 0 No

What is the difference b/w Arry.copy() and array.clone() method?..

Answer / vasanth

Array.copy() copies both structure and data to another array and its return type is void.
Array.Clone() copies only structure of array and its return type is Object.

Is This Answer Correct ?    0 Yes 0 No

What is the difference b/w Arry.copy() and array.clone() method?..

Answer / sanjaym

Array.copy() and array.clone() both gives Deep copy.

The main difference is array.clone() return type is object
so type casting is required...

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More C Sharp Interview Questions

Oops concepts ?

2 Answers   Accenture, Digital GlobalSoft,


Why is dll used?

0 Answers  


What is class and object c#?

0 Answers  


What’s the difference between System.String and System.Text.StringBuilder classes with example

2 Answers  


Enlist the different types of classes in c#?

0 Answers  


What are the different types of assemblies available and their purpose?

0 Answers  


How can I get around scope problems in a try/catch?

0 Answers  


Is clr a compiler?

0 Answers  


How do you remove white spaces from a string?

0 Answers  


What is the difference between final finally and finalize in c#?

0 Answers  


Does a loop recorder have to be removed?

0 Answers  


I created a class which is inherited from interface IDisposable. Now if I use object of this class with using keyword. Then How the dispose method will get call. Does garbage collector call it or some else.

2 Answers   Sapient,


Categories