Infosys Interview Question

Core java and oops concepts