Home » JAVA Programming » Data Structures » Question
  1. How to sort elements of ArrayList?
    1. Sorter.sortAsc(listObj);
    2. listObj.sort();
    3. Collections.sort(listObj);
    4. Collection.sort(listObj);
    5. None of these
Correct Option: C

Collections provides a method to sort the list. The order of sorting can be defined using Comparator.



Your comments will be displayed only after manual approval.