Deloitte interview question

Basic Java Questions