Is this a bug? Here's the program:
==========
import java.util.Date;
class DateApp
{
public static void main(String args[])
{
Date today = new Date(95, 11, 30);
System.out.println(today);
}
}
=========
Here's the output:
=========
Sat Dec 30 00:00:00 PST 1995
=========
Shouldn't "Dec" read "Nov"?
==========
import java.util.Date;
class DateApp
{
public static void main(String args[])
{
Date today = new Date(95, 11, 30);
System.out.println(today);
}
}
=========
Here's the output:
=========
Sat Dec 30 00:00:00 PST 1995
=========
Shouldn't "Dec" read "Nov"?