Cognizant Interview Question

Basics of java and oops