java.util Package

java.util Package : Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).

Interfaces in java.util Package

S.No Interface & Description
1 Collection<E>

The root interface in the collection hierarchy.
2 Comparator<T>

A comparison function, which imposes a total ordering on some collection of objects.
3 Deque<E>

A linear collection that supports element insertion and removal at both ends.
4 Enumeration<E>

An object that implements the Enumeration interface generates a series of elements, one at a time.
5 EventListener

A tagging interface that all event listener interfaces must extend.
6 Formattable

The Formattable interface must be implemented by any class that needs to perform custom formatting using the ‘s’ conversion specifier of Formatter.
7 Iterator<E>

An iterator over a collection.
8 List<E>

An ordered collection (also known as a sequence).
9 ListIterator<E>

An iterator for lists that allows the programmer to traverse the list in either direction, modify the list during iteration, and obtain the iterator’s current position in the list.
10 Map<K,V>

An object that maps keys to values.
11 Map.Entry<K,V>

A map entry (key-value pair).
12 NavigableMap<K,V>

A SortedMap extended with navigation methods returning the closest matches for given search targets.
13 NavigableSet<E>

A SortedSet extended with navigation methods reporting closest matches for given search targets.
14 Observer

A class can implement the Observer interface when it wants to be informed of changes in observable objects.
15 PrimitiveIterator<T,T_CONS>

A base type for primitive specializations of Iterator.
16 PrimitiveIterator.OfDouble

An Iterator specialized for double values.
17 PrimitiveIterator.OfInt

An Iterator specialized for int values.
18 PrimitiveIterator.OfLong

An Iterator specialized for long values.
19 Queue<E>

A collection designed for holding elements prior to processing.
20 RandomAccess

Marker interface used by List implementations to indicate that they support fast (generally constant time) random access.
21 Set<E>

A collection that contains no duplicate elements.
22 SortedMap<K,V>

A Map that further provides a total ordering on its keys.
23 SortedSet<E>

A Set that further provides a total ordering on its elements.
24 Spliterator<T>

An object for traversing and partitioning elements of a source.
25 Spliterator.OfDouble

A Spliterator specialized for double values.
26 Spliterator.OfInt

A Spliterator specialized for int values.
27 Spliterator.OfLong

A Spliterator specialized for long values.
28 Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>

A Spliterator specialized for primitive values.

Classes in java.util Package

S.No Class & Description
1 AbstractCollection<E>

This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.
2 AbstractList<E>

This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "random access" data store (such as an array).
3 AbstractMap<K,V>

This class provides a skeletal implementation of the Map interface, to minimize the effort required to implement this interface.
4 AbstractMap.SimpleEntry<K,V>

An Entry maintaining a key and a value.
5 AbstractMap.SimpleImmutableEntry<K,V>

An Entry maintaining an immutable key and value.
6 AbstractQueue<E>

This class provides skeletal implementations of some Queue operations.
7 AbstractSequentialList<E>

This class provides a skeletal implementation of the List interface to minimize the effort required to implement this interface backed by a "sequential access" data store (such as a linked list).
8 AbstractSet<E>

This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface.
9 ArrayDeque<E>

Resizable-array implementation of the Deque interface.
10 ArrayList<E>

Resizable-array implementation of the List interface.
11 Arrays

This class contains various methods for manipulating arrays (such as sorting and searching).
12 Base64

This class consists exclusively of static methods for obtaining encoders and decoders for the Base64 encoding scheme.
13 Base64.Decoder

This class implements a decoder for decoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
14 Base64.Encoder

This class implements an encoder for encoding byte data using the Base64 encoding scheme as specified in RFC 4648 and RFC 2045.
15 BitSet

This class implements a vector of bits that grows as needed.
16 Calendar

The Calendar class is an abstract class that provides methods for converting between a specific instant in time and a set of calendar fields such as YEAR, MONTH, DAY_OF_MONTH, HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week.
17 Calendar.Builder

Calendar.Builder is used for creating a Calendar from various date-time parameters.
18 Collections

This class consists exclusively of static methods that operate on or return collections.
19 Currency

Represents a currency.
20 Date

The class Date represents a specific instant in time, with millisecond precision.
21 Dictionary<K,V>

The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to values.
22 DoubleSummaryStatistics

A state object for collecting statistics such as count, min, max, sum, and average.
23 EnumMap<K extends Enum<K>,V>

A specialized Map implementation for use with enum type keys.
24 EnumSet<E extends Enum<E>>

A specialized Set implementation for use with enum types.
25 EventListenerProxy<T extends EventListener>

An abstract wrapper class for an EventListener class which associates a set of additional parameters with the listener.
26 EventObject

The root class from which all event state objects shall be derived.
27 FormattableFlags

FomattableFlags are passed to the Formattable.formatTo() method and modify the output format for Formattables.
28 Formatter

An interpreter for printf-style format strings.
29 GregorianCalendar

GregorianCalendar is a concrete subclass of Calendar and provides the standard calendar system used by most of the world.
30 HashMap<K,V>

Hash table based implementation of the Map interface.
31 HashSet<E>

This class implements the Set interface, backed by a hash table (actually a HashMap instance).
32 Hashtable<K,V>

This class implements a hash table, which maps keys to values.
33 IdentityHashMap<K,V>

This class implements the Map interface with a hash table, using reference-equality in place of object-equality when comparing keys (and values).
34 IntSummaryStatistics

A state object for collecting statistics such as count, min, max, sum, and average.
35 LinkedHashMap<K,V>

Hash table and linked list implementation of the Map interface, with predictable iteration order.
36 LinkedHashSet<E>

Hash table and linked list implementation of the Set interface, with predictable iteration order.
37 LinkedList<E>

Doubly-linked list implementation of the List and Deque interfaces.
38 ListResourceBundle

ListResourceBundle is an abstract subclass of ResourceBundle that manages resources for a locale in a convenient and easy to use list.
39 Locale

A Locale object represents a specific geographical, political, or cultural region.
40 Locale.Builder

Builder is used to build instances of Locale from values configured by the setters.
41 Locale.LanguageRange

This class expresses a Language Range defined in RFC 4647 Matching of Language Tags.
42 LongSummaryStatistics

A state object for collecting statistics such as count, min, max, sum, and average.
43 Objects

This class consists of static utility methods for operating on objects.
44 Observable

This class represents an observable object, or "data" in the model-view paradigm.
45 Optional<T>

A container object which may or may not contain a non-null value.
46 OptionalDouble

A container object which may or may not contain a double value.
47 OptionalInt

A container object which may or may not contain a int value.
48 OptionalLong

A container object which may or may not contain a long value.
49 PriorityQueue<E>

An unbounded priority queue based on a priority heap.
50 Properties

The Properties class represents a persistent set of properties.
51 PropertyPermission

This class is for property permissions.
52 PropertyResourceBundle

PropertyResourceBundle is a concrete subclass of ResourceBundle that manages resources for a locale using a set of static strings from a property file.
53 Random

An instance of this class is used to generate a stream of pseudorandom numbers.
54 ResourceBundle

Resource bundles contain locale-specific objects.
55 ResourceBundle.Control

ResourceBundle.Control defines a set of callback methods that are invoked by the ResourceBundle.getBundle factory methods during the bundle loading process.
56 Scanner

A simple text scanner which can parse primitive types and strings using regular expressions.
57 ServiceLoader<S>

A simple service-provider loading facility.
58 SimpleTimeZone

SimpleTimeZone is a concrete subclass of TimeZone that represents a time zone for use with a Gregorian calendar.
59 Spliterators

Static classes and methods for operating on or creating instances of Spliterator and its primitive specializations Spliterator.OfInt, Spliterator.OfLong, and Spliterator.OfDouble.
60 Spliterators.AbstractDoubleSpliterator

An abstract Spliterator.OfDouble that implements trySplit to permit limited parallelism.
61 Spliterators.AbstractIntSpliterator

An abstract Spliterator.OfInt that implements trySplit to permit limited parallelism.
62 Spliterators.AbstractLongSpliterator

An abstract Spliterator.OfLong that implements trySplit to permit limited parallelism.
63 Spliterators.AbstractSpliterator<T>

An abstract Spliterator that implements trySplit to permit limited parallelism.
64 SplittableRandom

A generator of uniform pseudorandom values applicable for use in (among other contexts) isolated parallel computations that may generate subtasks.
65 Stack<E>

The Stack class represents a last-in-first-out (LIFO) stack of objects.
66 StringJoiner

StringJoiner is used to construct a sequence of characters separated by a delimiter and optionally starting with a supplied prefix and ending with a supplied suffix.
67 StringTokenizer

The string tokenizer class allows an application to break a string into tokens.
68 Timer

A facility for threads to schedule tasks for future execution in a background thread.
69 TimerTask

A task that can be scheduled for one-time or repeated execution by a Timer.
70 TimeZone

TimeZone represents a time zone offset, and also figures out daylight savings.
71 TreeMap<K,V>

A Red-Black tree based NavigableMap implementation.
72 TreeSet<E>

A NavigableSet implementation based on a TreeMap.
73 UUID

A class that represents an immutable universally unique identifier (UUID).
74 Vector<E>

The Vector class implements a growable array of objects.
75 WeakHashMap<K,V>

Hash table based implementation of the Map interface, with weak keys.

Enums in java.util Package

S.No Enum & Description
1 Formatter.BigDecimalLayoutForm

Enum for BigDecimal formatting.
2 Locale.Category

Enum for locale categories.
3 Locale.FilteringMode

This enum provides constants to select a filtering mode for locale matching.

Exception Classes in java.util Package

S.No Exception Class & Description
1 ConcurrentModificationException

This exception may be thrown by methods that have detected concurrent modification of an object when such modification is not permissible.
2 DuplicateFormatFlagsException

Unchecked exception thrown when duplicate flags are provided in the format specifier.
3 EmptyStackException

Thrown by methods in the Stack class to indicate that the stack is empty.
4 FormatFlagsConversionMismatchException

Unchecked exception thrown when a conversion and flag are incompatible.
5 FormatterClosedException

Unchecked exception thrown when the formatter has been closed.
6 IllegalFormatCodePointException

Unchecked exception thrown when a character with an invalid Unicode code point as defined by Character.isValidCodePoint(int) is passed to the Formatter.
7 IllegalFormatConversionException

Unchecked exception thrown when the argument corresponding to the format specifier is of an incompatible type.
8 IllegalFormatException

Unchecked exception thrown when a format string contains an illegal syntax or a format specifier that is incompatible with the given arguments.
9 IllegalFormatFlagsException

Unchecked exception thrown when an illegal combination flags is given.
10 IllegalFormatPrecisionException

Unchecked exception thrown when the precision is a negative value other than -1, the conversion does not support a precision, or the value is otherwise unsupported.
11 IllegalFormatWidthException

Unchecked exception thrown when the format width is a negative value other than -1 or is otherwise unsupported.
12 IllformedLocaleException

Thrown by methods in Locale and Locale.Builder to indicate that an argument is not a well-formed BCP 47 tag.
13 InputMismatchException

Thrown by a Scanner to indicate that the token retrieved does not match the pattern for the expected type, or that the token is out of range for the expected type.
14 InvalidPropertiesFormatException

Thrown to indicate that an operation could not complete because the input did not conform to the appropriate XML document type for a collection of properties, as per the Properties specification.
15 MissingFormatArgumentException

Unchecked exception thrown when there is a format specifier which does not have a corresponding argument or if an argument index refers to an argument that does not exist.
16 MissingFormatWidthException

Unchecked exception thrown when the format width is required.
17 MissingResourceException

Signals that a resource is missing.
18 NoSuchElementException

Thrown by various accessor methods to indicate that the element being requested does not exist.
19 TooManyListenersException

The TooManyListenersException Exception is used as part of the Java Event model to annotate and implement a unicast special case of a multicast Event Source.
20 UnknownFormatConversionException

Unchecked exception thrown when an unknown conversion is given.
21 UnknownFormatFlagsException

Unchecked exception thrown when an unknown flag is given.

Error Classes in java.util Package

S.No Error Class & Description
1 ServiceConfigurationError

Error thrown when something goes wrong while loading a service provider.

Ask your questions in eHowToNow Forum

Post your technical, non-technical doubts, questions in our site. Get answer as soon as possible, meanwhile you can help others by answering, unanswered questions.
To Ask new Question : Ask Question
Check our existing discussions : Questions & Answers

  1. Java – Spliterators.AbstractIntSpliterator Class
  2. Java ArrayList forEach() method with example
  3. Java – LongConsumer Interface
  4. Java – DoubleAdder Class
  5. Java – Appendable Interface
  6. Java – ThreadFactory Interface
  7. Java – ForkJoinPool.ManagedBlocker Interface
  8. Java – Predicate Interface
  9. Java – Executor Interface
  10. Java – SynchronousQueue Class
  11. Java – TreeSet Class
  12. Java – Scanner Class
  13. Java – ForkJoinWorkerThread Class
  14. Java – Spliterators.AbstractLongSpliterator Class
  15. Java – Comparator Interface

Be the first to comment

Leave a Reply