Possible Duplicate:
New Integer vs valueOf
I read at few place that Integer.valueOf is better than new Integer(), since it allows caching of values to be done by the compiler. So when should I be using new Integer() and not Integer.valueOf(). Is there a reason/scenario where I should not be using Interger.valueOf()
Thanks