Q. What is the output of the following println statement?
String str1 = "Hellow";
System.out.println(str1.indexOf('t'));
String str1 = "Hellow";
System.out.println(str1.indexOf('t'));
β
Correct Answer: (D)
1
D.
-1