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

Free demo downloads

Loading demo links...

Showing 7–9 of 15 questions

Question 7

Given the code fragment:

Which two modifications, when made independently, enable the code to print joe:true: 100.0? (Choose two.)

Select all that apply, then click Submit answer.

  • ○

    Option A

  • ○

    Option B

  • ○

    Option C

  • ○

    Option D

  • ○

    Option E

Question 8

Given the code fragment:

What is the result?

Select an option, then click Submit answer.

  • ○

    S 6

  • ○

    S 5

  • ○

    s-1

  • ○

    w 7

Question 9

Given:

What is the result?

Select an option, then click Submit answer.

  • ○

    97 98
    99 100 null null null

  • ○

    97 98
    99 100 101 102 103C. Compilation fails.

  • ○

    A NullPointerException is thrown at runtime.

  • ○

    An ArraylndexOutOfBoundsException is thrown at runtime.