Author
People suggest using Date class is deprecated, then for handling Date which class should be used???
jacob deiter
Ranch Hand
Joined: Apr 02, 2008
Posts: 576
People suggest using Date class is deprecated, then for handling Date which class should be used???
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
People who say this are Joda Time users.
Date (and Calendar) are not deprecated at all, but some say that Joda Time is easier to use. I can't confirm since Date and Calendar have always done what I needed.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
The java.util.Date class has a deprecated constructor. That must be what they mean.
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
Ah yes, and almost all of its getter / setter methods are deprecated. Calendar should be used for that. So not but Also, not but
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
posted Jul 02, 2009 05:42:29
0
Us JodaTime users don't say they're deprecated, just that they're heinous ;)
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32712
David Newton wrote: Us JodaTime users don't say they're deprecated, just that they're heinous ;)
Probably a more accurate quote :wink:
subject: People suggest using Date class is deprecated, then for handling Date which class should be used???