Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardJavaComparator comparing thenComparingSingle-choice MCQ

What does this code throw?

List<String> list = List.of("b","a");\nlist.sort(null);