By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,742 Members | 773 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,742 IT Pros & Developers. It's quick & easy.

StringTokenizer 'legacy class'

P: 8
The API specification for the Java 2 Platform Standard Edition 5.0 states that the class StringTokenizer is 'a legacy class.' What does this mean?

a.m.
May 17 '07 #1
Share this Question
Share on Google+
6 Replies


Expert 10K+
P: 11,448
The API specification for the Java 2 Platform Standard Edition 5.0 states that the class StringTokenizer is 'a legacy class.' What does this mean?

a.m.
The StringTokenizer class was already there in the old Java 1.0 version. Later,
better tokenizers have been added thanks to the regular expression processing
classes. The class is next to useless and is only retained in the core library
for backward compatibility reasons. It's better not use it because before you
know they stamp this class 'depracated' which 'officially' means that future
versions of Java won't support it anymore.

kind regards,

Jos
May 17 '07 #2

P: 46
they'll rather deprecate the class than support its use.
May 17 '07 #3

dmjpro
100+
P: 2,476
remember ...... in JAVA classes r not deprecated but the methods r deprecated and those methods r introduced in new Class.

kind regards.
dmjpro.
May 18 '07 #4

prometheuzz
Expert 100+
P: 197
remember ...... in JAVA classes r not deprecated but the methods r deprecated and those methods r introduced in new Class.

kind regards.
dmjpro.
That is not true: classes can be (and are*) deprecated.

* http://java.sun.com/j2se/1.5.0/docs/...ist.html#class
May 18 '07 #5

dmjpro
100+
P: 2,476
a good thing i came to know today..
thanxxx.
May 18 '07 #6

prometheuzz
Expert 100+
P: 197
a good thing i came to know today..
thanxxx.
No problem.
; )

---
May 18 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.