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 the difference between array and arraylist in c#?

0 Answers  


What are the different types of assemblies available and their purpose?

0 Answers  


What are the ways in which client can create object on server in cao model?

0 Answers  


What is session variable in c#?

0 Answers  


What is arraylist class in c#?

0 Answers  






f i give input like 1,1,4,5,6,1,2,5,4,1,2, then output should be like : 1-4, 2-2, 4-2, 5-1, 6-1 which means 1 occurs 4 times, 2 occurs 2 times like so.

7 Answers  


How do you generate documentation from the C# file commented properly with a command-line compiler?

1 Answers  


Why do we need interface in c#?

0 Answers  


How do you prevent a method from being overridden in c#?

0 Answers  


What are the new features in c# 2.0?

0 Answers  


What is inline function in c#?

0 Answers  


Explain manifest & metadata.

2 Answers   Wipro,


Categories