Threads
It is often the case that you would like a program to be able to do more than one thing at a time. You might, for example, want to monitor the keyboard for a key being pressed by a user and, at the same time, track the movement of the mouse by the user and repaint the screen. Each of these tasks can be thought of as a single thread in a... | | Input, Output and Exceptions
Communication is vital. It is also potentially unreliable. This is true of human
communication, but also of communication between humans and computers, or equally
when one computer communicates with another across a network.
There are two fundamentally different ways of communicating with a Java program. In
this... | | Java in the Small
We have called this unit 'Java in the small' after atermcoined by DeRemer and Kron in a 1976 paper.This refers to the programming of the internal parts of programs, in particular the contentsofmethods.
The previous unit introduced the idea of objectscommunicating through the invocation of methods on objects. In this unit you will... |