Long max value in Java
Long is stored in 64 bits of memory. To find max and min values of Long in Java we can use inbuilt fields of Long class : Long.MAX_VALUE = 9223372036854775807 Long.MIN_VALUE = -9223372036854775808 Let us look at the example code : Output