Which of these packages contain all the collection classes?

The options for the question which of these packages contain all the collection classes are

  • A java.lang
  • B java.util
  • C. java.net
  • D. java.awt

The java.util package contains all the classes and interfaces for the Collection framework.

java collection hierarchy
image source and credit : Javapoint.com

Java.util package contains all the collection classes

So for the question

Which of these packages contain all the collection classes?

Answer is : Java.util

more about computing

See also  Which of the following option is offered by Identity as a Service

Leave a Comment