Question: java what is the difference between int and integer?
Answer: 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. ... On other hand Integer is a wrapper class which wraps a primitive type int into an object.