Cognizant interview question

Java questions that are based on oops concepts