Java basic concept examples