What is the difference between array.find method and
arraylist.find method?

Answer Posted / sahilmahammad

Array.find() will find the first occurrence from the given
predicate and return the result.
When in ArrayList there is no method like find() if you
still want to find object than you have to use
BinarySearch() which will return the index of the object

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do constructors do in c#?

655


How do I get deterministic finalization in c#?

787


What is static classes in c#?

697


Explain polymorphism in c# with a simple example?

673


What is array c#?

689


List down the differences between “dispose” and “finalize” methods in c#.

607


Is a structure a class?

662


What is virtual class in C#?

726


Why do we use reflection in c#?

667


What is use of console?

658


What is class and object c#?

651


Can you have more than one namespace in c#?

660


What is Delegate and what is it used for ?

760


Why do we use lambda expression in c#?

669


When a Static Constructor is called in a Class?

747