Solved

Consider the Following Code Snippet in Java 6 or Later

Question 67

Multiple Choice

Consider the following code snippet in Java 6 or later: String[] data = { "abc", "def", "ghi", "jkl" };
String[] data2 = Arrays.copyOf(data, data.length - 1) ;
What does the last element of data2 contain?


A) "abc"
B) "def"
C) "ghi"
D) "jkl"

Correct Answer:

verifed

Verified

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

Related Questions