Oracle Planning and Budgeting Cloud Service 2016 Implementation Specialist — Question 10

Consider the validation code in a Shipping entity object that is designed to ensure that the date ordered is <= the date shipped. public boolean validateDateShippedAfterDateOrdered() {
Date DateShipped = getDateShipped();
Date DateOrdered = qetDateOrdered();
if (DateShipped != null && DateShipped.compareTo(DateOrdered) < 0) { return false;
}
return true;
}
Which entity object validation rule should you integrate this with? (Choose the best answer.)

Answer options

Correct answer: C

Explanation

The correct answer is C because the compare validator on the DateOrdered attribute directly enforces the relationship that the date shipped must be after the date ordered. The other options either focus on the DateShipped attribute or do not enforce the required comparison between the two dates.