I created an integer object as well as a primitive int variable! I gave the same value to both. I performed math operations on both to compare if there is any difference.I couldn't find any difference.
So my question is -what is the advantage of using integer object instead of primitive int datatype?
Is there any specific or different kind of operation that can be performed on integer object?
What is the use of creating one?
I searched on google but I was redirected to some other questions related to integer in stackoverflow! I couldn't find any related question. Please help me!