NIIT Limited Interview Question

question on java, sql.