1.

What is the output of this program? class output { public static void main(String args[]) { String s = "Hello World"; int i = s.indexOf('o'); int j = s.lastIndexOf('l'); System.out.print(i + " " + j); } }

A. 4 8
B. 5 9
C. 4 9
D. 5 8
Answer» D. 5 8


Discussion

No Comment Found