Vidyalelo
Java Programming · Q39

Strings

Programming · Java Programming · question 39

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
Answer
E.
0

Answer: Option D

Solution

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