Mphasis Interview Question

mostly on OOPS and Java concepts