Solved

Consider the Following Code Snippet: String[] Data = { "Abc

Question 57

Multiple Choice

Consider the following code snippet: String[] data = { "abc", "def", "ghi", "jkl" };
String [] data2;
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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents