Java differs from most other languages in that the number of classes and interfaces in its standard libraries is very large. Many common tasks have already been implemented by these libraries.
Advice to beginners might include :
- the most widely used packages are java.lang and java.util.
- for working with data, see java.sql, javax.sql, and java.io.
- for graphical applications, see the Swing classes (javax.swing, and so on).
- for server applications, see the servlet and Java Server Page APIs.
- for other packages, you should skim through their documentation just to get an idea of what is available. Later, when a specific need arises, you will often know which packages might be helpful.
- do not be too intimidated by the large number of classes. Some are used often, but most are used relatively rarely.
As well, the standard JDK libraries :
- are generally of high quality
- often improve their performance over time
- are widely used, and usually form defacto standards
Significant changes and additions to the standard libraries occur in each major release, and it pays to keep current.
The Java 1.4 release includes:
- regular expressions
- logging services
- an enhanced for loop
- and annotations
- the JConsole monitoring tool
- various Swing improvements
- java.nio.file - new ways to interact with the file system
- binary literals
- catch-ing multiple exceptions
- type inference