Cognizant interview question

String declaration in C vs JAVA