Which one is best in programming - int or Integer? Especially whenever both are doing the same task?
int
Integer
I am writing an appli
int is primitive, Integer is an int wrapped up as an object.
It really depends how you are going to be using them.