I know that Integer
is a class and int
is just a number, but when should we use one over another and how to convert Integer
to int
(and vice versa)?
** Also, there is this question (what is autoboxing by the way) but I am asking WHEN to use int over Integer in actual programming (such as performance issues, ease of use and readability) and vice versa and not the DIFFERENCE between them.