Q. What is the output of System.out.println(‘A’ + 1);?
Solution:
‘A’ has ASCII value 65, and 65 + 1 = 66, printed as a number since no string concatenation occurs.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
‘A’ has ASCII value 65, and 65 + 1 = 66, printed as a number since no string concatenation occurs.
Strengthen Your Practice with our comprehensive question bank.