Java Get Maximum Integer Value

Tags: Integer

In this Java core tutorial we learn how to get maximum Integer value in Java programming language.

How to get maximum Integer value in Java

In Java, we can get the maximum Integer value using the Integer.MAX_VALUE constant as the Java code below.

public class GetMaxIntegerExample {
    public static void main(String... args) {
        // Get maximum Integer value
        int maxInteger = Integer.MAX_VALUE;

        System.out.println("Maximum Integer Value: " + maxInteger);
The output as below.
Maximum Integer Value: 2147483647

Happy Coding 😊

Java Get Minimum Integer Value