Q211
What will be the output of the following Java program? import java.lang.System; class Output public static void main(String args[]) byte a[] = 65, 66, 67, 68, 69, 70 ; byte b[] = 71, 72, 73, 74, 75, 76 ; System.arraycopy(a, 2, b, 3, a.length - 4); System.out.print(new String(a) + " " + new String(b));
A.
ABCDEF ABCDEF
B.
ABCDEF GHIJKL
C.
ABCDEF GHIABC
D.
ABCDEF GHICDL
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board