Deloitte interview question

Basics of Java and oops concepts