How are these declarations different from each other?
String s=\"MY PROFESSION\"; char c[]=\"MY PROFESSION\";
What about the memory allocation
char is a primitive type while String is a class. An array of a specified number of strings and strings are a bundle of characters.