what is the difference between int and int?
A Java both int and Integer are used to store integer type data the major difference between both is type of int is primitive while Integer is of class type. ... int helps in storing integer value into memory. Integer helps in converting int into object and to convert an object into int as per requirement.