Computer Science, asked by Anonymous, 7 months ago

String and Character... Difference​

Answers

Answered by abhaysingh53215
2

Answer:

Char is primitive datatype where as String is a class. A char holds a single character, while a string holds lots of characters. char is a primitive type, and it can hold a single character. String is instead a reference type, thus a full-blown object.

Answered by aarivukkarasu
3

Explanation:

character:-

1) Char is primitive datatype

2) A char holds a single character

3) char is a primitive type, and it can hold a single character

string:-

1) String is a class

2) string holds lots of characters

3) String is instead a reference type, thus a full-blown object

hope it helps you

Similar questions