Java Date

Java provides the Date class available in java.util package, this class encapsulates the current date and time.

Code :