Which of these is a method of class Date which is used to search weather object contains a date before the specified date?
A. after()
B. contains()
C. before()
D. compareTo()
Answer:A
Which of these is a method of class Date which is used to search weather object contains a date before the specified date?
A. after() B. contains() C. before() D. compareTo()
Explanation: before() returns true if the invoking Date object contains a date that is earlier than one specified by date, otherwise it returns false.