Java exercises - multiple choice questions