Does Java need friends?