1.

What is the output of this program?
public class Result 
{
public static void main(String args[])
{
byte array0[] = { 71, 72, 73, 74, 75, 76 };
byte array1[] = { 77, 78, 79, 80, 81, 82 };
System.arraycopy(array0 , 1, array1, 3, 0);
System.out.print(new String(array0) + " " + new String(array1));
}
}

A. GHIJKL
B. MNOPQR
C. GHIJKL MNOPQR
D. GHIJKLMNOPQR
E. None of these
Answer» D. GHIJKLMNOPQR


Discussion

No Comment Found

Related MCQs