what is the difference between class and object in java