Core java examples with description