aspose file tools*
The moose likes Java in General and the fly likes Why is Calendar an abstract class ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Why is Calendar an abstract class ?" Watch "Why is Calendar an abstract class ?" New topic
Author

Why is Calendar an abstract class ?

jose chiramal
Ranch Hand

Joined: Feb 12, 2010
Posts: 266
Why is calendar an abstract class ? Any particular reason ??
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

Because while there are very similar aspects between them, not every one in the world uses the same calendar system.


GenRocket - Experts at Building Test Data
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

2012, yo.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15292
    
    6

David Newton wrote:2012, yo.

:rolling:
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2247

jose chiramal wrote:Why is calendar an abstract class ? Any particular reason ??


Because a calendar is an abstract concept from the real world! However, a gregorian calendar is a concrete concept.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
 
subject: Why is Calendar an abstract class ?
 
Similar Threads
Calendar class problem?
Why Sun made Calendar class as a abstract class
abstract class instance
Calendar class......have no constructor
calendar.getInstance()