Sail E0 Webinar
Question
Which of these is a method of class Date which is used to search weather object contains a date before the specified date?
Options:
A .  after()
B .  contains()
C .  before()
D .  compareTo()
Answer: Option C


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



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers