Q. What is the output of System.out.println(‘a’ + ‘b’);?
Solution:
Char values are added as their ASCII values (97 + 98 = 195) when not concatenated with a string.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Char values are added as their ASCII values (97 + 98 = 195) when not concatenated with a string.
Strengthen Your Practice with our comprehensive question bank.