Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is a method of class Date which is used to search weather object contains a date before the specified date?
  2. A.
    after()
    B.
    contains()
    C.
    before()
    D.
    compareTo()

    View Answer

    Workspace

    Answer : Option 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.


Be The First To Comment