StringTokenizer 'legacy class'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • js06am
    New Member
    • Feb 2007
    • 8

    #1

    StringTokenizer 'legacy class'

    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.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by js06am
    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

    Comment

    • emekadavid
      New Member
      • Mar 2007
      • 46

      #3
      they'll rather deprecate the class than support its use.

      Comment

      • dmjpro
        Top Contributor
        • Jan 2007
        • 2476

        #4
        remember ...... in JAVA classes r not deprecated but the methods r deprecated and those methods r introduced in new Class.

        kind regards.
        dmjpro.

        Comment

        • prometheuzz
          Recognized Expert New Member
          • Apr 2007
          • 197

          #5
          Originally posted by dmjpro
          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

          Comment

          • dmjpro
            Top Contributor
            • Jan 2007
            • 2476

            #6
            a good thing i came to know today..
            thanxxx.

            Comment

            • prometheuzz
              Recognized Expert New Member
              • Apr 2007
              • 197

              #7
              Originally posted by dmjpro
              a good thing i came to know today..
              thanxxx.
              No problem.
              ; )

              ---

              Comment

              Working...