How to get and print current Date and Time in a Java program ?

Program to demonstrate how to get current Date and Time in Java

package com.hubberspot.object.example;

import java.util.Date;

public class WelcomeDate {

  public static void main(String[] args) {

    System.out.println("Hello, so you are back !");
    System.out.println("Welcome to Hubberspot !");
    System.out.println("Today's date is : "+ new Date());
  }
} 

Output of the program :