GIAC
GSSP-JAVA · Question #150
Which of the following code fragments will compile without error? Each correct answer represents a complete solution. Choose all that apply.
The correct answer is A. boolean a = false; B. int a = 10; D. boolean a = true. See the full explanation below for the reasoning.
Question
Which of the following code fragments will compile without error? Each correct answer represents a complete solution. Choose all that apply.
Options
- Aboolean a = false;
- Bint a = 10;
- Cint a = 0;
- Dboolean a = true;
How the community answered
(35 responses)- A77% (27)
- C23% (8)
Community Discussion
No community discussion yet for this question.