Java – Integer Example

Integer is primitive data type in java which can take numeric value. Use of integer in java is shown below.

Example of Integer

public class IntegerExampleJava {

    public static void main(String[] args) {

        int integer=5473;

        System.out.println("Integer primitive data type :"+integer);
    }
}

Output

Integer primitive data type :5473

Tags:

Bookmark  

 

Leave a Reply

Security Code:

 

  Random Post