7. Working Classes of Java

The purpose of this chapter is to get acquainted with some classes that support the Java programmer. The first topic concerns error handling. Java makes in fact a distinction between errors (bugs) that the programmer could not have helped, and exceptions which should be taken care of by the programmer.

The second topic is about parallel programming. Java offers the mechanism of threads, parallel lines of execution. With threads it is easy to animate objects, or to have things should run simultaneously.

The last subject is on how input and output is done in Java. Here we dive into the world of streams, which form a generalization of files towards a networked environment.