Oracle
1Z0-815 · Question #99
Given the code fragment: int b = 3; if ( !(b > 3)) { System.out.println("square"); }{ System.out.println("circle"); } System.out.println("..."); What is the result?
The correct answer is C. squarecircle. See the full explanation below for the reasoning.
Question
Given the code fragment:
int b = 3; if ( !(b > 3)) { System.out.println("square"); }{ System.out.println("circle"); } System.out.println("..."); What is the result?
Options
- Asquare...
- Bcircle...
- Csquarecircle...
- DCompilation fails.
How the community answered
(69 responses)- A4% (3)
- B9% (6)
- C71% (49)
- D16% (11)
Community Discussion
No community discussion yet for this question.