

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? class String_demo { public static void main(String args[]) { int ascii[] = { 65, 66, 67, 68}; String s = new String(ascii, 1, 3); System.out.println(s); } } |
A. | ABC |
B. | BCD |
C. | CDA |
D. | ABCD |
Answer» C. CDA | |