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
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)- A90% (19)
- C5% (1)
- E5% (1)
Explanation
Incorrect answers: OK, but duplicate definition.
Topics
#variable declaration#primitive types#syntax
Community Discussion
No community discussion yet for this question.
