1z0-808 Exam Question 211

Given the code fragment: List colors = new ArrayList(); colors.add("green"); colors.add("red"); colors.add("blue"); colors.add("yellow"); colors.remove(2); colors.add(3,"cyan"); System.out.print(colors);
What is the result?
  • 1z0-808 Exam Question 212

    Which three are advantages of the Java exception mechanism? (Choose three.)
  • 1z0-808 Exam Question 213

    Given the content of three files:

    Which statement is true?
  • 1z0-808 Exam Question 214

    Given:

    And given the code fragment:

    What is the result?
  • 1z0-808 Exam Question 215

    Given the fragment:
    String[][] arra = new String[3][];
    arra[0] = new String[]{"rose", "lily"};
    arra[1] = new String[]{"apple", "berry","cherry","grapes"};
    arra[0] = new String[]{"beans", "carrot","potato"};
    // insert code fragment here
    Which code fragment when inserted at line '// insert code fragment here', enables the code to successfully change arra elements to uppercase?