Explanatory Question
Write the output for the following:
String s="Today is Test";
System.out.println(s.indexOf('T'));
System.out.println(s.substring(0,7) + " " +"Holiday");
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.