| ▲ | papercrane 2 hours ago | |
Yes, because auto-boxing is just compiling to Integer.getValue under the hood, the bytecode for Integer.getValue(1) and ((Integer) 1) is the same. They'll both compile to something like: | ||
| ▲ | tsimionescu 2 hours ago | parent [-] | |
Sure, I was just talking about Java syntax, not the bytecode internals. | ||