+ 2
What is the difference between an int and an Integer
What is the difference between an int and an Integer
2 Answers
+ 2
In Java, the 'int' type is a primitive , whereas the 'Integer' type is an object.
+ 1
Thanks
What is the difference between an int and an Integer