Friday, August 1, 2003 11:10 PM
Because you are getting an instance of a concrete class of that class. In your cod, the "c" contains a GregorianCalendar class.
Calendar c = Calendar.getInstance();
Calendar c = new GregorianCalendar();
The two lines of code above are exaclty the same. The first one is the right one to use, anyway.
Check out the Factory pattern.