1z0-808 Exam Question 131

Given the code fragment:

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

    Given:

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

    Given the code fragments:

    Which code fragment, when inserted at line n1, enables the code to print Hank?
    A:

    B:

    C:

    D:
  • 1z0-808 Exam Question 134

    Given:
    Given:
    public class SuperTest {
    public static void main(String[] args) {
    statement1
    statement2
    statement3
    }
    }
    class Shape {
    public Shape() {
    System.out.println("Shape: constructor");
    }
    public void foo() {
    System.out.println("Shape: foo");
    }
    }
    class Square extends Shape {
    public Square() {
    super();
    }
    public Square(String label) {
    System.out.println("Square: constructor");
    }
    public void foo() {
    super.foo();
    }
    public void foo(String label) {
    System.out.println("Square: foo");
    }
    }
    }
    }
    What should statement1, statement2, and statement3, be respectively, in order to produce the result?
    Shape: constructor Square: foo Shape: foo
  • 1z0-808 Exam Question 135

    The following grid shows the state of a 2D array:

    This grid is created with the following code:

    Which line of code, when inserted in place of //line n1, adds an X into the grid so that the grid contains three consecutive X's?