-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatatyperange.java
More file actions
23 lines (19 loc) · 836 Bytes
/
datatyperange.java
File metadata and controls
23 lines (19 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.lang.*;
class datatyperange
{
public static void main(String[] args)
{
System.out.println("Int Max range : "+Integer.MAX_VALUE);
System.out.println("Int Min range : "+Integer.MIN_VALUE);
System.out.println("Int no. of bytes : "+Integer.BYTES);
System.out.println("Float Max range : "+Float.MAX_VALUE);
System.out.println("Float Min range : "+Float.MIN_VALUE);
System.out.println("Float no. of bytes : "+Float.BYTES);
System.out.println("String Max range : "+Character.MAX_VALUE);
System.out.println("String Min range : "+Character.MIN_VALUE);
System.out.println("String no. of bytes : "+Character.BYTES);
System.out.println("Boolean Max range : "+Boolean.TRUE);
System.out.println("Boolean Min range : "+Boolean.FALSE);
// System.out.println("Boolean no. of bytes : "+Boolean.BYTE);
}
}