In JAVA is there any difference in using Integer and int at run time ??
1.Integer n = new Integer;
2.int n= new int;
on solving this question i got AC when i used Integer,but got TLE when i used int.My code for that problem is http://ideone.com/Iqq22S
plzz explain the difference of using them and why much time is taking while using primitive data type int.