nerdexam
Oracle

1Z0-803 · Question #21

Given: Which two declarations will compile?

The correct answer is A. int a, b, c = 0; D. int d, e, F;. Incorrect answers: OK, but duplicate definition.

Working with Java Data Types

Question

Given:

Which two declarations will compile?

Exhibit

1Z0-803 question #21 exhibit

Options

  • Aint a, b, c = 0;
  • Bint a, b, c;
  • Cint g, int h, int i = 0;
  • Dint d, e, F;
  • Eint k, l, m = 0;

How the community answered

(21 responses)
  • A
    90% (19)
  • C
    5% (1)
  • E
    5% (1)

Explanation

Incorrect answers: OK, but duplicate definition.

Topics

#variable declaration#primitive types#syntax

Community Discussion

No community discussion yet for this question.

Full 1Z0-803 Practice