1.

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()

Answer» Right option is (c) before()

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


Discussion

No Comment Found

Related InterviewSolutions