Protected modifier in java