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: Option D

Join The Discussion