Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Since int can be used to define Integer variables in java, why use integer to get a detailed answer from the great god?
Since int can be used to define Integer variables in java, why use integer to get a detailed answer from the great god?
Int is a basic data type, which defines an integer data. Integer is a class that encapsulates variables and methods related to integers.

Integer in = new Integer(); It is to create an object of a class, and then call methods and variables. For example, integer...max _ value is the maximum value in an integer, and Integer.parseInt(String object) can convert a String object into an integer.