-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathData_Types_02.java
More file actions
38 lines (23 loc) · 938 Bytes
/
Copy pathData_Types_02.java
File metadata and controls
38 lines (23 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package Java_practice;
public class Data_Types_02 {
public static void main(String[] args) {
byte age=30;
short num1=20000;
int num2=1000000000;
long long_num=6384368728L; //For long type we must add "l or L" IN the end of value
char ch='A';
float num3= 16.71f; //For long type we must add "f or F" IN the end of value
double num4=1077666.20;
String name="VIJAYAWADA";
Boolean b=true;
System.out.println("Byte Value Is " + age);
System.out.println("Short Value Is " + num1);
System.out.println("Int Value Is " + num2);
System.out.println("Long Value Is " + long_num);
System.out.println("Char Value Is " + ch);
System.out.println("Float Value Is " + num3);
System.out.println("Double Value Is " + num4);
System.out.println("Boolean Value Is " + b);
System.out.println("String Value Is " + name);
}
}