Deloitte Interview Question

Basic Java questions from first year