long max min java code example
Example 1: default boolean value java
Default values for variable types:
Object = null
int, double, long, (etc) = 0
boolean = false
char = '\u0000'
Example 2: max long value java
/**
* A simple application that looks up the value of Long.MAX_VALUE and outputs it to the user.
**/
public class Test {
public static void main(String[] args) {
System.out.println("The maximum Long value is: "+Long.MAX_VALUE);
}
}