A computer system includes a virtual machine supporting an object-oriented
environment, in which programs to run on the virtual machine are formed
from classes including methods. Applications run on the virtual machine.
After a first such application has run on the virtual machine, a reset is
performed on the virtual machine. The reset calls a first method in a
class to perform a tidy-up operation which effectively puts the virtual
machine back into a clean state. Subsequently a second application can be
started on the virtual machine. As part of this start-up, the system
calls a second method in the class to perform a reinitialization of the
class.