Q30
How do you find the first index of a specified character in a string in Java?
A.
str.getFirstIndexOf(char)
B.
str.findFirst(char)
C.
str.indexFirst(char)
D.
str.indexOf(char)
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board