Free 1z0-811 – Java Foundations Practice Test Question

Free demo downloads

Loading demo links...

Showing 4–6 of 10 questions

Question 4

Which two Java reserved words are used to implement encapsulation?

Select all that apply, then click Submit answer.

  • ○

    final

  • ○

    static

  • ○

    public

  • ○

    extends

  • ○

    private

Question 5

Identify two valid data types for the operands of the addition (+) operator?

Select all that apply, then click Submit answer.

  • ○

    string

  • ○

    boolean

  • ○

    numeric

  • ○

    array

Question 6

Given the code fragment:

What is the result?

Select an option, then click Submit answer.

  • ○

    A compilation error occurs.

  • ○

    A runtime exception is thrown.

  • ○

    Julia
    Peter

  • ○

    Peter
    Julia