Free 1z0-808 – Java SE 8 Programmer Practice Test Question

Free demo downloads

Loading demo links...

Showing 4–6 of 15 questions

Question 4

Which two statements are true? (Choose two.)

Select all that apply, then click Submit answer.

  • ○

    Error class is unextendable.

  • ○

    Error class is extendable.

  • ○

    Error is a RuntimeException.

  • ○

    Error is an Exception.

  • ○

    Error is a Throwable.

Question 5

Given the following classes:

Which two options fail to compile when placed at line n1 of the main method? (Choose two.)

Select all that apply, then click Submit answer.

  • ○

    employee.salary = 50_000;

  • ○

    director.salary = 80_000;

  • ○

    employee.budget = 200_000;

  • ○

    manager.budget = 1_000_000;

  • ○

    manager.stockOption = 500;

  • ○

    director.stockOptions = 1_000;

Question 6

Given:

Which two code fragments can be inserted at line n1? (Choose two.)

Select all that apply, then click Submit answer.

  • ○

    String str = “Java”;

  • ○

    for(int iVal = 0; iVal <=5; iVal++){}

  • ○

    Test() {}

  • ○

    package p1;

  • ○

    import java.io.*;