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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use extension method in c#?

680


What is part of a method signature in c#?

653


What is the use of getcommandlineargs() method in c#.net?

727


What is .cshtml file?

670


What are boxing and unboxing?

703


Can I define my own exceptions?

663


What is the difference between system.string and system.text.stringbuilder classes?

704


What are the characteristics of c#?

666


What is datagridview in c#?

830


From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?

737


What is the use of table aliases?

662


what are the contents of an assembly ?

742


Can abstract class be instantiated c#?

708


What is the use of delegate?

723


What are callback methods in c#?

684