Cognizant interview question

Sql query , String and exception handling coding questions, Java basic questions