Multiple Choice
Consider the following code snippet: In Java 6 and later, which statement copies the data array to the data2 array?
A) data2 = Arrays.copyOf(data, data2.length) ;
B) data2 = Arrays.copyOf(data, data.length) ;
C) data2 = Arrays.copyOf(data, data.size() ) ;
D) data2 = Arrays.copyOf(data) ;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q92: Consider the telephone book as a physical
Q93: Assume the array of integers values has
Q94: What is the output of the following
Q95: Why is the use of physical objects
Q96: Which one of the following is the
Q98: What is the output of the following
Q99: What is the value of the count
Q100: Which one of the following statements is
Q101: Assume the method doSomething has been defined
Q102: Java 7 introduced enhanced syntax for declaring