Java SE 8 Programmer 1Z0–808 Practice Full Test 1

© examsiri.com
Question : 29 of 84
 
Marks: +1, -0
Given Code
String[] strs = new String[2]; int idx = 0;
for (String s : strs) {
  strs[idx].concat("element" + idx);
  idx++;
}
for (idx = 0; idx < strs.length; idx++) {
  System.out.println(strs[idx]);
}
What is the result?
Go to Question: