Computer Science, asked by InnovativeD, 11 months ago

difference between 'Z' and "Z" in java program. 18 points​


Anonymous: I prefer Cpp and Python but the difference between 'C' and "S" is that 'C' is of the char data type while "S" is of the string data type. Simple

Answers

Answered by jyotisikhadash2
3

'Z' is a char datatype as it is enclosed within single quotes. The character datatype can only store a single digits,alphabet and number. It has its respective ASCII code. Like for 'A' the ASCII code is 65 and for 'Z' the ASCII code will be 90. You can use this datatype to add another character or numeric datatype .

"Z" is a string datatype as it is enclosed within double quotes . It is basically used to print a message. Multiple characters can be used within a string datatype. Length of the string is immaterial.

best if luck****

hope it helps

mark me as brainliest!!!


InnovativeD: ThNks
InnovativeD: i will surely mark ur and s brnlst
jyotisikhadash2: thanks to u too
Answered by InnovativeD2
0

Answer:

'Z' is used to represent char data type while "Z" means printing a message in a program.

Similar questions