Data types

import java.util.Scanner;
class A
{
public static void main(String args[])
{
int a;
char b;
double d;
long e;
byte f;
boolean g;
String h;
a=10;
b=’e’;
d=23.1;
e=44;
f=11;
g=true;
h=”aaa”;
System.out.println(a);
System.out.println(b);
System.out.println(d);
System.out.println(e);
System.out.println(f);
System.out.println(g);
System.out.println(h);

}

}


Leave a Reply

Your email address will not be published. Required fields are marked *