❮ Previous Next ❯

Character Data Types

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 character data type.

class CharacterDemo
{
public static void main (String args[ ])
{
char c1;
c1 =?A?;
c1++;
System.out.println (?c1 is ?+c1);
}
}
Output

B

❮ Previous Next ❯

Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved