Vidyalelo
Java Programming · Q9

Strings

Programming · Java Programming · question 9

Q9

Which method is used to find the index of the first occurrence of a specified character in a string in Java?

A.
findIndex()
B.
indexOf()
Answer
C.
search()
D.
findCharacter()

Answer: Option B

Solution

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