Cognizant interview question

Oops Java Exceptions Sql queries