First class in java