Collections list,set and map
Vijay Mylavarapu
1y
List
names.add("Alice");
names.add("Bob");
names.add("Charlie");
Set
numbers.add(1);
numbers.add(2);
numbers.add(3);
Map
Vijay Mylavarapu
1y
In Java, the java.util.Collections
class is a utility class that contains static methods for operating on collections (which are objects that store other objects). There are three main interfaces in t...read more
Noorjahan Khatoon
2y
List implementation classes are Array List, LinkedList
implementation classes are HashSet, LinkedHashSet, and TreeSet
Map implementation classes are HashMap, HashTable, TreeMap, ConcurrentHashMap, ...read more
Add answer anonymously...
Top TCS Java Developer interview questions & answers
Popular interview questions of Java Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app