JAVA SP T


Lets dive into snapshot of my programs!💻

1. Create a Java program to access the java.util.Date class through import keyword and print the current date of the system.

💡Code:

import java.util.Date;
              class A{
                  public static void main(String a[])
                  {
                      Date obj = new  Date();
                      System.out.println(obj); 
                  }
              } 

📸Output :

output