PDF File

Latest Oracle 1Z0-808 Practice Questions BY May

Question 1

Given:

Which code fragment can replace the if block?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Question 2

Given this class:

And given this main method, located in another class:

Which three lines, when inserted independently at line n1, cause the program to print a 0 balance?

  • A. acct.setAmount(-acct.getAmount());
  • B. acct.amount = 0;
  • C. acct.setAmount(0);
  • D. acct.getAmount() = 0;
  • E. this.amount = 0;
  • F. acct.changeAmount(0);
  • G. acct.changeAmount(-acct.amount);