+ 2
What is difference between char var and String var
please answer over marrow is my exam
2 Respuestas
+ 3
char variables can be assigned single character, example:
char variable ='a';
char variable ='5';
while String variables can be assigned one or more than one characters.
Example : String var = "a";
String var = "Hi fellas";
+ 6
char is a primitive type
String is an object type