Cognizant interview question

dbms,java program