August 2017
Beginner
298 pages
7h 26m
English
We routinely import classes from packages such as java.* and javax.* in our code because the classes in those packages house most of the public APIs in the Java language that are meant for public consumption. There are, however, classes in other packages such as sun.* that are JDK-internal and you wouldn't find in any API documentation. Many of these classes have been a part of Java since 1.0.
Since the language had no facility to prevent usage of these internal APIs, several other attempts have been made to discourage usage. There was an article on the Sun website titled Why developers should not write programs that call 'sun' packages. The Sun website isn't up anymore, but ...
Read now
Unlock full access