nerdexam
Oracle

1Z0-554 · Question #5

1Z0-554 Question #5: Real Exam Question with Answer & Explanation

The correct answer is E. (job != "SALESMAN" ? newValue > 500 : newValue > 0). See the full explanation below for the reasoning.

Question

In an HR replication you want to add validation using Groovy language. The validation is defined on the salary attribute. It needs to ensure that if an employee's job is not that of a salesman's then the new value of the salary must be greater than 500 or greater than zero. What is the Groovy expression you use?

Options

  • A( Job "SALESMAN" ? newValue > 500 : newValue > 0)
  • B(job != "SALESMAN" ? currentValue > 500 : currentValue > 0)
  • C(job !="SALESMAN" : newValue > 500 ? newValue > 0)
  • D(job !='SALESMAN' ? newValue > 500 : newValue > 0)
  • E(job != "SALESMAN" ? newValue > 500 : newValue > 0)

Community Discussion

No community discussion yet for this question.

Full 1Z0-554 Practice