Cognizant interview question

Basic of java ,Basic of c