Check Java Variable Length. (Int,Float,Double)

Write a java program to check Variable_Length…(Int,Float,Double).

[java]

class Variable_Length
{

public static void main(String args[]) {

//int float long double short byte char boolean

System.out.println("The Length of Variable INT " + Integer.MAX_VALUE);
System.out.println("The Length of Variable INT " + Integer.MIN_VALUE);

System.out.println("The Length of Variable Float " + Float.MAX_VALUE);
System.out.println("The Length of Variable Float " + Float.MIN_VALUE);

System.out.println("The Length of Variable Double " + Double.MAX_VALUE);
System.out.println("The Length of Variable Double " + Double.MIN_VALUE);
}
}

[/java]

Share

About the Author

Akash Padhiyar

Visit Website

There are no comments yet, add one below.

Leave a Comment

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

*

Time limit is exhausted. Please reload CAPTCHA.