The OpenJDK and HotSpot JVM 5 - 8 don't optimise them away, unless they are not used (and even then not always)
However, it is important to have a sense of perspective when you ask these problem or answer them. Autoboixing is trivial compared to the code of converting a number into a String (the way the JVM does it anyway) and this is trivial by comparison to writing to the console. If you take out the System.out.println() this will save 99.99%+ of the time so worrying about autoboxing here is worrying about the wrong things.
In your specifc case, it cannot optimise way the autoboxing because PrintStream.println(Object) is called. The JVM generally doesn't understand what libraries do and it can't make the assumption that calling PrintStream.println(int) would do the same thing.