aspose file tools
The moose likes Java in General and the fly likes Reason for depecated methods java.util.Date Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Reason for depecated methods java.util.Date" Watch "Reason for depecated methods java.util.Date" New topic
Author

Reason for depecated methods java.util.Date

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
I would like to know why following methods of java.util.Date
are deprecated.



Also I would like to know what is the recommanded methods.

Regards
Ajit Kanada
[ January 16, 2007: Message edited by: Ajit Kanada ]

Thankx
Ajit
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

The original Date classes were poorly implemented (specifically, they could not be internationalised), so Sun replaced them with the Calendar class. As with all deprecated methods, the JavaDocs themselves should point you at the replacement method.
[ January 16, 2007: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
Thankx Paul for your prompt reply.
I am looking for more specific answers with respect to
the methods mentioned in the mail.

Do you think we can get some explaination from Sun on this ?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Well you can but ask them I suppose.

I am repeating what is described in the JavaDocs for java.util.Date. However, given the limited funtionality provided by java.util.Date, I'm not sure why you would choose to use it for all but the most hasic date processing.
[ January 16, 2007: Message edited by: Paul Sturrock ]
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12953
    
    3

Originally posted by Ajit Kanada:
Do you think we can get some explaination from Sun on this ?


If you want an answer from Sun and you're not satisfied with the information you can find in the API documentation then you should probably ask your question to someone from Sun instead of on JavaRanch...

What more specific answer are you expecting?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reason for depecated methods java.util.Date
 
Similar Threads
How to mark as deprectated?
Javadoc
deprecated behavior
how to send browser display HTML page as HTML Email using JSF
Junit For testing SAX API