Java int:int is 32 bit signed type ranges from –2,147,483,648 to 2,147,483,647.
public class Main {
public static void main(String[] args) {
int i = 0;
int j = 100;
System.out.println("Value of int variable i is :" + i);
System.out.println("Value of int variable j is :" + j);
}
}
Related examples in the same category