Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Never use deprecated fields, methods, or classes in new code. Java also provides a @deprecated annotation to indicate the deprecation of specific fields, methods, and classes. For example, many methods of java.util.Date, such as Date.getYear(), have been explicitly deprecated. Rule THI05-J. Do not use Thread.stop() to terminate threads describes issues that can result from using the deprecated Thread.stop() method. 

The Java SE documentation provides a list of deprecated APIs for each version of the language:

...

 

...

      Rule 06. : Methods (MET)