class Test { public static void main (String args[ ]) { char c1, c2; c1=90; c2 =?A?; System.out.println (c1+c2); } }
Output
155
Let's see another program on the character data type.
class CharacterDemo { public static void main (String args[ ]) { char c1; c1 =?A?; c1++; System.out.println (?c1 is ?+c1); } }
Output
B
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc