Vidyalelo
Java Programming · Q30

Java Collections Framework

Programming · Java Programming · question 30

Q30

What is the purpose of the `Collections.reverse()` method in the Java Collections Framework?

A.
It removes all elements from a list
B.
It sorts a list in ascending order
C.
It adds elements to a list
D.
It reverses the order of elements in a list
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board