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



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

Answer / 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

More C Sharp Interview Questions

What is using directive in c#?

0 Answers  


Can a class inherit structure.

4 Answers   IBM, Synechron,


Why do we need structs in c#?

0 Answers  


Can you pass value types by reference to a method?

0 Answers  


What are custom exceptions in C#?

0 Answers   Arigo Infotech,






Do while loops yes or no c#?

0 Answers  


What is a decimal c#?

0 Answers  


Can you drink alcohol with a loop recorder?

0 Answers  


Can we declare class as protected?

0 Answers   Infosys,


What?s a delegate?

8 Answers   CTS, Visual Soft,


Explain About namespaces

0 Answers  


Is static class thread safe in c#?

0 Answers  


Categories