- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What does import Java.util.* in Java do?
85 Lectures 6 hours
Java util package contains collection framework, collection classes, classes related to date and time, event model, internationalization, and miscellaneous utility classes. On importing this package, you can access all these classes and methods.
Following table lists out the classes in the collection package.
Collection Interface represents a group of objects. It is a root interface of collection framework.
It is a dynamic group of unique elements. It does not store duplicate element.
They are similar to sets with the only difference that they allow duplicate values in them.
It is an arrangement of the type First-In-First-Out (FIFO).
First element put in the queue is the first element taken out from it.
It stores elements in the form of unique Key-Value pair.
- What does Integer.parseInt() method do in Java?
- What does synchronized modifier do in Java?
- What does abstract modifier in Java do?
- What does the compareTo do in Java?
- What does the modifier transient in Java do?
- What does the modifier volatile in Java do?
- What does the method clear() do in java?
- What does the method clone() do in java?
- What does the method firstElement() do in java?
- What does the method lastElement() do in java?
- What does the method removeAllElements() do in java?
- What does the method size() do in java?
- What does the method isEmpty() do in java?
- What does the method elements() do in java?
- What does the method toArray() do in java?