O'Reilly logo

The class of Java by Pravin Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required