πŸ“Š JAVA
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) ABCDEF GHICDL

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Bhagwan Das
Publisher
πŸ“ˆ
82%
Success Rate