Question
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, 0, b, 0, a.length);
System.out.print(new String(a) + " " + new String(b));
}
}
a.
ABCDEF ABCDEF
b.
ABCDEF GHIJKL
c.
GHIJKL ABCDEF
d.
GHIJKL GHIJKL
Posted under Java Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this program?
Similar Questions
Discover Related MCQs
Q. Which of these is a super class of wrappers Double and Float?
View solution
Q. Which of the following methods return the value as a double?
View solution
Q. Which of these methods can be used to check whether the given value is a number or not?
View solution
Q. Which of these method of Double wrapper can be used to check whether a given value is infinite or not?
View solution
Q. Which of these exceptions is thrown by compareTo() method defined in a double wrapper?
View solution
Q. Which of these packages contain classes and interfaces used for input & output operations of a program?
View solution
Q. Which of these class is not a member class of java.io package?
View solution
Q. Which of these interface is not a member of java.io package?
View solution
Q. Which of these class is not related to input and output stream in terms of functioning?
View solution
Q. Which of these is specified by a File object?
View solution
Q. Which of these is method for testing whether the specified element is a file or a directory?
View solution
Q. Which of these class is used to read and write bytes in a file?
View solution
Q. Which of these method of InputStream is used to read integer representation of next available byte input?
View solution
Q. Which of these data type is returned by every method of OutputStream?
View solution
Q. Which of these is a method to clear all the data present in output buffers?
View solution
Q. Which of these method(s) is/are used for writing bytes to an outputstream?
View solution
Q. Which of these stream contains the classes which can work on character stream?
View solution
Q. Which of these class is used to read characters in a file?
View solution
Q. Which of these method of FileReader class is used to read characters from a file?
View solution
Q. Which of these class can be used to implement the input stream that uses a character array as the source?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!