Discussion Forum : Strings
Question - What is the output of the following println statement?
String str1 = "Hellow";
System.out.println(str1.indexOf('t'));
Options:
A .  true
B .  false
C .  1
D .  -1
E .  0
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *