Computer Science, asked by himu95, 11 months ago

difference between char and string

Answers

Answered by Anonymous
6
char is used for single alphabet while string is used for multiple alphabets like ur name or combination of alphabets
Answered by Anonymous
3
Char is a single alphabet where asString is a sequence of characters. ...String is instead a reference type, thus a full-blown object. It can hold any number of characters (internally, Stringobjects save them in a char array). Primitive types in Java have advantages in term of speed and memory footprint
Similar questions