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

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

480


What is private virtual in C#?

588


What are the main reasons to use c# language?

498


What is cache memory in c#?

492


What is the use of nullable types in c#?

488






When Should You Call The Garbage Collector In .net?

553


What is the console on a mac?

476


What is difference between events and delegates?

493


Explain the types of errors in c#?

485


What is private class in c#?

482


Why c# is called c sharp?

466


Contrast System.String and System.Text.StringBuilder classes?

528


How do you encapsulate in c#?

485


What are the fundamental oop concepts?

530


What is distribute by in hive?

542