object in java: basic