CHAPTER 13

java.util Package and the Collection Framework

The java.util package has lots of classes and interfaces. These are mainly related to the collection framework. Apart from the collection framework, it has many utility classes and also the date and time related classes. In Java, time is normally known and used as a long value in milliseconds from a standard base time known as “The Epoch”. Epoch is the time 1st January, 1970 0:0:0.0 GMT, which would be the same as 1st January, 1970 5:30:0.0 IST. There are many classes which encapsulate the millisecond value and provide methods to convert and extract the values related to the day, month, year, hour, minutes, seconds, etc. There are two main classes which use this, namely java.util.Date ...

Get The class of Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.