nerdexam
Oracle

1Z0-829 · Question #7

Given the code fragment: int a = 2; int b = ~a; int c = a^b; boolean d = a < b & a > c++; boolean e = a > b && a > c++; System.out.println(d + " " + c); System.out.println(e + " " + c); What is the…

Sign in or unlock 1Z0-829 to reveal the answer and full explanation for question #7. The question stem and answer options stay visible for context.

Handling date, time, text, numeric and boolean values

Question

Given the code fragment: int a = 2; int b = ~a; int c = a^b; boolean d = a < b & a > c++; boolean e = a > b && a > c++; System.out.println(d + " " + c); System.out.println(e + " " + c); What is the result?

Options

  • Afalse 1
  • Bfalse 2
  • Ctrue 1
  • Dfalse 1
  • Etrue 1
  • Ffalse 0

Unlock 1Z0-829 to see the answer

You've previewed enough free 1Z0-829 questions. Unlock 1Z0-829 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#bitwise operators#logical operators#short-circuit evaluation#post-increment
Full 1Z0-829 Practice