nerdexam
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)
  • A
    4% (3)
  • B
    9% (6)
  • C
    71% (49)
  • D
    16% (11)

Community Discussion

No community discussion yet for this question.

Full 1Z0-815 Practice