Java 8 compilers optimize static interface methods like "Final?".

My specific question is: do compilers build static end-user code in other compiled methods? I was out of the loop in this type of optimization for some time and wanted to know it was still running.

+8
java javac
source share
1 answer

javac will not be anything inline - in any case, it optimizes very little. JIT can embed this, depending on whether this method is really hot enough and can be embedded, and the threshold is not reached.

+1
source share

All Articles