Q. Identify the output of the following program.
Code:String str = “Hellow”; System.out.println(str.indexOf(‘t));
β
Correct Answer: (D)
-1
String str = “Hellow”; System.out.println(str.indexOf(‘t));
You must be Logged in to update hint/solution