CodePhataa
Home
GoAlgo
Revision Hub
Learning Path
Challenge
Compiler
More
Toggle theme
Open menu
Collections and Maps | Java Flashcards | CodePhataa | CodePhataa
Collections and Maps
Decks
Collections and Maps
01
/
34
Program
Question
Program to which types?
Tap to reveal
Answer
List, Set, Map, Deque — not ArrayList — unless you need an impl-specific constructor or method.