Q39
What is the output of the following println statement? String str1 = "Hellow"; System.out.println(str1.indexOf('t'));
A.
true
B.
false
C.
1
D.
-1
AnswerE.
0
Answer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board