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 happens if a static constructor throws an exception?

488


Is a valid int value?

474


What are the advantages of properties in c#?

550


What is IL / CIL / MSIL?

655


Does c# support multilevel inheritance?

481






Define collections?

492


Explain the three test cases in unit testing?

592


Tell me the difference between value passing and address passing?

624


Why array is faster than arraylist in c#?

485


What is parallel programming in c#?

488


What is the difference between a method and a property?

451


How to sort an int array in c#?

529


What is difference between class and abstract class in c#?

457


What is difference between ilist and list in c#?

481


Can we inherit static class in c#?

480