I didn't understand the actual use of new int()
So my qustion is what is the difference between
int myNumber = 5;
and
int myNumber = new int();
What is the best use of new int() or when should we use new int() I know the memory allocation difference (stack and heap) but i didn't find any actual use of new int()