3

Is it true that javax packages, in the Java language, are not stable and can be deprecated in future versions? In most of our project we use the swing packages which are included in javax.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
Javaist
  • 139
  • 6
  • 1
    You're probably thinking of the com.sun... packages. Those are the ones that are internal and shouldn't be used. As mentioned in the other answer, the javax packages are perfectly fine. – Josh Davis May 04 '15 at 11:32

1 Answers1

5

This is nothing to worry about. There are Java classes that have been deprecated for the last 15 years but they're still in the core libraries for backwards compatibility.

Even if a whole swathe of javax.* classes get deprecated, they won't disappear.

You might want to take a look at Java 9's modular system too.

Steve Chaloner
  • 8,162
  • 1
  • 22
  • 38