Q83
What will be the output of the following Java 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
AnswerC.
CDA
D.
ABCD
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board