Cognizant Interview Question

Basics of Java, oops and mental ability questions