1.

What is the output of this program?public class Result { public static void main(String args[]) { String str1 = "Interview Mania"; String str2 = str1.substring(0 , 9); System.out.println(str2); } }

A. Interview
B. Mania
C. Interview Mania
D. Inter
E. None of these
Answer» B. Mania


Discussion

No Comment Found

Related MCQs