Instead of calling a routine, you move the code from the routine itself and expand it in place of the call. In addition to manual inlining, some languages support automatic inlining where the compiler or some other pre-compiler decides when to inline a code routine. Also, some languages allow for developer defined inlining where the developer can suggest and/or force the inlining of a code routine. Inlining can optimize your code for speed by saving a call and return, and parameter management.
Languages Focus: Inlining
Does it support inlining? If so, does it support developer defined inlining? Does it support automatic inlining? Both?
The Java compiler automatically inlines when it determines a benefit. The use of final methods is considered a compiler hint to tell the compiler to inline the method if beneficial.