1z1-808 Exam Question 11

Given:

What is the result?
  • 1z1-808 Exam Question 12

    Given the code fragment:

    What is the result?
  • 1z1-808 Exam Question 13

    Given:
    class MarksOutOfBoundsException extends IndexOutOfBoundsException { }
    public class GradingProcess {
    void verify(int marks) throws IndexOutOfBoundsException {
    if (marks > 100) {
    throw new MarksOutOfBoundsException();
    }
    if (marks > 50) {
    System.out.print("Pass");
    } else {
    System.out.print("Fail");
    }
    }
    public static void main(String[] args) {
    int marks = Integer.parseInt(args[2]);
    try {
    new GradingProcess().verify(marks));
    } catch(Exception e) {
    System.out.print(e.getClass());
    }
    }
    }
    And the command line invocation:
    Java grading process 89 50 104
    What is the result?
  • 1z1-808 Exam Question 14

    Given the code fragment:

    What is the result?
  • 1z1-808 Exam Question 15

    You are asked to create a method that accepts an array of integers and returns the highest value from that array.
    Given the code fragment:

    Which method signature do you use at line n1?