Understanding why Object in Java