FUNDAMENTALS OF COMPUTER

DATABASE FUNDAMENTALS

BASICS OF BIG DATA

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which of these packages contain all the collection classes?
A
java.lang
B
java.util
C
java.net
D
java.awt
Explanation: 

Detailed explanation-1: -All the collection classes are present in java. util and java. util. concurrent package.

Detailed explanation-2: -The java.util package contains all the classes and interfaces for the Collection framework.

Detailed explanation-3: -1. Which of these packages contain all the collection classes? Explanation: None.

Detailed explanation-4: -Java collection class is used exclusively with static methods that operate on or return collections. It inherits Object class. The important points about Java Collections class are: Java Collection class supports the polymorphic algorithms that operate on collections.

Detailed explanation-5: -The java.util.Collections class consists exclusively of static methods that operate on or return collections.Following are the important points about Collections − It contains polymorphic algorithms that operate on collections, “wrappers", which return a new collection backed by a specified collection.

There is 1 question to complete.