1.

What is the output of this program?
public class Result 
{
public static void main(String args[])
{ String str = "Interview Mania";
int K = str.indexOf('v');
int L = str.lastIndexOf('i');
System.out.print(K + " " + L);

}
}

A. 13 5
B. 3 5
C. 5 13
D. 5 3
E. None of these
Answer» D. 5 3


Discussion

No Comment Found

Related MCQs