6 ms·
technically, the lambda creation, not it's execution. It's also used for string concatenation in Java 9. while invokedynamic was introduced to enhance the supp
by _old_dude_ 9y ago
technically, the lambda creation, not it's execution.
It's also used for string concatenation in Java 9.
while invokedynamic was introduced to enhance the support of dynamic languages on the JVM, invokedynamic is now used as a kind of macro instruction to avoid to add new instructions in the bytecode set when the instruction can be decomposed in a set of already existing instructions.
- jnordwick 9y agoIn Java 9 string concatenation it isn't for macro use but to allow the run time to make the final determination as to how it is going to actually do the joining since there are now multiple strategies available to process the strings and possibly user overrideable behavior to incorporate.