max long value java 1

max long value java

Long.MAX_VALUE == 9_223_372_036_854_775_807L // (9223372036854775807)
Long.MIN_VALUE == -9_223_372_036_854_775_808L // (-9223372036854775808)

Here is what the above code is Doing:
1. We’re creating a new variable called `myLong` and assigning it the value of `9223372036854775807L`.
2. We’re printing the value of `myLong` to the console.
3. We’re printing the value of `Long.MAX_VALUE` to the console.
4. We’re printing the value of `Long.MIN_VALUE` to the console.

Similar Posts