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()
I had been asked this question during an internship interview.
This question is from Java.util topic in division java.util – The Collections Framework of Java