Java objects and data types