Examveda

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


This Question Belongs to Java Program >> Collections Framework In Java

Join The Discussion

Related Questions on Collections Framework in java