
import java.util.*;
class Date
{
public static void main(String[]args)
{
Date d = new Date(100000000000L);
System.out.print("1st date"+d.toString());
}
}
out put:- 1st date@3e25

Change the name of your java file. There is a contradiction as the Date is itself a predefined class.

import java.util.*;
class DateExample
{
public static void main(String[]args)
{
Date d = new Date(100000000000L);
System.out.print("1st date"+d.toString());
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.