IBM Interview Question

Basic Java and oops concepts