Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaGenerics (bounds/wildcards/PECS)Single-choice MCQ

What can you legally do with the variable `box` here?

List<?> box = new ArrayList<String>(); // which operation compiles?