

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
public class String_Example { public static void main(String args[]) { char chars[] = {'I', 'L', 'U'}; String obj = new String(chars); String obj1 = "InterviewMania"; int len0 = obj1.length(); int len1 = obj.length(); System.out.println(len0 + " " + len1); } } |
A. | 14 3 |
B. | 3 14 |
C. | 41 3 |
D. | 3 41 |
E. | None of these |
Answer» B. 3 14 | |