Question 52 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question 52 of 76 from exam 1Z0-808: Java SE 8 Programmer I

Question

Given the code fragment:

String[] strs = new String[2];

int idx = 0;

for (String s : strs) {
strs[idx].concat(" element "+ idx);
idxt+;

)
for (idx = 0; idx < strs.length; idxt+t) {

system. out. println (strs[idx]) i

What is the result?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D.