Which one is best in programming - int
or Integer
? Especially whenever both are doing the same task?
I am writing an application in Java. In most of the places of primitive data types, I use int
; and for objects, I use Integer
. So I am confused- which one is the best in places, where we have to use objects.
According to performance, which one is best for a Java application?
See Question&Answers more detail:os