[Answer] Read the code carefully and give its output : package javaprogarms; public class StringDemo{ public static void main(String[]args)

The Question : Read the code carefully and give its output : package javaprogarms; public class StringDemo{ public static void main(String[]args){ String myString = “INFORMATION TECHNOLOGY”;System.out.println(myString.indexof(’E’));System.out.println(myString.contains(“NO”));System.out.println(myString.length(); }};

Solution for the question :
13

True

22

The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.

Leave a Reply

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