1z0-819 Java SE 11 Developer

Loading demo links...

Showing 4–6 of 15 questions

Question 4

Given:

Assuming that this code compiles correctly, which three statements are true? (Choose three.)

Select all that apply, then click Submit answer.

  • B cannot be abstract.

  • B is a subtype of A.

  • A cannot be abstract.

  • A cannot be final.

  • B cannot be final.

  • A is a subtype of B.


Question 5

Given:

Which two codes, independently, can be inserted in line to 1 compile?

Select all that apply, then click Submit answer.

  • Abacus aba = (int m, int n) -> { m * n };

  • Abacus aba = (int e, int f) -> { return e * f; };

  • Abacus aba = (a, b) -> a * b;

  • Abacus aba = v, w -> x * y;

  • Abacus aba = (int i, j) -> ( return i * j; };


Question 6

Given:

Which two methods facilitate valid ways to read instance fields? (Choose two.)

Select all that apply, then click Submit answer.

  • getTCount

  • getACount

  • getTotalCount

  • getCCount

  • getGCount