Primitive type
int primitive
A signed 32-bit integer, from -2147483648 through 2147483647. Ordinary integer addition can wrap on overflow.
Formal Syntax & Structure
java syntaxjava
int name = expression;Working Example
Example Snippetjava
public class Main { public static void main(String[] args) { int max = 2147483647; System.out.println(max + 1); }}