I'm just wondering if there is any difference in letting java autobox say an integer:
Integer myInteger = 3;
or having your code like
Integer myInteger = Integer.valueOf(3);
Is there any micro optimization? I know that the second is more explicit, but it is also a more unnecessary typing, is there any difference besides this?
java performance autoboxing
Oscar Gomez Mar 09 2018-11-11T00: 00Z
source share