Java - Deprecated
Java has a huge ecosystem, but not everything is worth learning. Here's a growing list of noises that you could safely ignore, or things you should mindfully avoid.
Some of these are clearly labeled as "Deprecated", or even removed from JDK after a certain release; some are still widely used but we have good reasons not to.
- Java Applet: deprecated since Java 9 and removed from Java 11.
- JSP: an ancient way to build web pages.
- JavaFX: spinoff from JDK since Java 11.
java.lang.Object.finalize()is deprecated since Java 9
Removed in Java 11 from SE, as part of JEP 320.
java.xml.ws(JAX-WS, plus the related technologies SAAJ and Web Services Metadata)
java.se.ee(Aggregator module for the six modules above)
jdk.xml.ws(Tools for JAX-WS)
jdk.xml.bind(Tools for JAXB)
To check out the current JDK modules(after Java 9):
$ java --list-modules
Calendarclass should be avoided after the new
java.timepackage in Java 8.
Executorover working directly on
NavigableMapin Java 6.
- prefer composition to inheritance
- PermGen is replaced by Metaspace