Which of these is a method of class Date which is used to search whether object contains a date before the specified date?

a) after()
b) contains()
c) before()
d) compareTo()

1 thought on “Which of these is a method of class Date which is used to search whether object contains a date before the specified date?”

  1. c
    Explanation: before() returns true if the invoking Date object contains a date that is earlier than one specified by date, otherwise it returns false.

Leave a Comment