Vidyalelo
Java Programming · Q20

Array

Programming · Java Programming · question 20

Q20

How do you check if an element exists in an array or ArrayList in Java?

A.
Use the find() method.
B.
Use the search() method.
C.
Use the contains() method.
Answer
D.
Use the exists() method.

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board