It depends on what the shared object is being used for. The Java tutorials provide a good example of using a class variable as a counter, how many bicycles (or something) are in the inventory, but...