Computer Science, asked by dineshgokul36, 6 months ago

difference between character and string literal​

Answers

Answered by moredhanaji428
4

Answer:

What is the difference between character literals and string literals in Java? Character literals represents alphabets (both cases), numbers (0 to 9), special characters (@, ?, & etc.) and escape sequences like \n, \b etc. Whereas, the String literal represents objects of String class

Answered by munnabarua
2

Answer:

Character literals represents alphabets (both cases), numbers (0 to 9), special characters (@, ?, & etc.) and escape sequences like \n, \b etc. Whereas, the String literal represents objects of String class.

Explanation:

read carefully

u will understand..

Similar questions