0

What is the package for collection in java

core java collection

1st Apr 2017, 7:32 AM
Lavish Mehta
Lavish Mehta - avatar
3 Antworten
+ 1
should be java.util 😎 Collection ist a interface that full qualified name is Java.util.Collection. It describes common methods for implementing Classes like add(), remove (), clear() and many more.
1st Apr 2017, 7:43 AM
Thomas Zenglein
Thomas Zenglein - avatar
0
in Java 8 these class implement collection: AbstractCollection, AbstractList, AbstractQueue, AbstractSequentialList, AbstractSet, ArrayBlockingQueue, ArrayDeque, ArrayList, AttributeList, BeanContextServicesSupport, BeanContextSupport, ConcurrentHashMap.KeySetView, ConcurrentLinkedDeque, ConcurrentLinkedQueue, ConcurrentSkipListSet, CopyOnWriteArrayList, CopyOnWriteArraySet, DelayQueue, EnumSet, HashSet, JobStateReasons, LinkedBlockingDeque, LinkedBlockingQueue, LinkedHashSet, LinkedList, LinkedTransferQueue, PriorityBlockingQueue, PriorityQueue, RoleList, RoleUnresolvedList, Stack, SynchronousQueue, TreeSet, Vector
1st Apr 2017, 7:50 AM
Thomas Zenglein
Thomas Zenglein - avatar
0
thank you thomas
1st Apr 2017, 8:58 AM
Lavish Mehta
Lavish Mehta - avatar