difference between character and string literal
Answers
Answered by
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
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
Computer Science,
3 months ago
Biology,
3 months ago
History,
6 months ago
History,
6 months ago
Biology,
10 months ago