adplus-dvertising
frame-decoration

Question

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: (c).before()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

Q. Which of these methods is used to retrieve elements in BitSet object at specific location?

Q. What is Remote method invocation (RMI)?

Q. Which of these package is used for remote method invocation?

Q. Which of these methods are member of Remote class?

Q. Which of these Exceptions is thrown by remote method?

Q. Which of these class is used for creating a client for a server-client operations?

Q. Which of these package is used for all the text related modifications?

Q. Which of these return type of hasNext() method of an iterator?

Q. Which of these methods is used to obtain an iterator to the start of collection?

Q. Which of these methods can be used to move to next element in a collection?

Q. Which of these iterators can be used only with List?

Q. Which of these is a method of ListIterator used to obtain index of previous element?

Q. Which of these exceptions is thrown by remover() method?

Q. Which of the below is not a subinterface of Queue?

Q. What is the remaining capacity of BlockingQueue whose intrinsic capacity is not defined?

Q. PriorityQueue is thread safe.

Q. What is difference between dequeue() and peek() function of java?

Q. What is the difference between Queue and Stack?

Q. What are the use of front and rear pointers in CircularQueue implementation?

Q. What is the correct method used to insert and delete items from the queue?