Examveda
Examveda

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()

C. search()

D. findCharacter()

Answer: Option B


This Question Belongs to Java Program >> Strings

Join The Discussion

Related Questions on Strings