Java Tutorial#part2
Hello friends today's topic is data types
- So today we will discuss about data types.
- There are mainly five data types-
- int, char, float, double, boolean.
class program{
public static void main(String[] args){
int a =20;
char h ='Hello'
float b = 3.1f;
double c = 32.20;
boolean n = True;
System.out.println(a);
System.out.println(b);
System.out.println(c);
System.out.println(h);
System.out.println(n);
}
}
we can use the in different manner.
Next time i will show you some function with them.
BYE!! See you next time
Comments
Post a Comment