The modern Java platform includes enhanced method handles as a way to improve the following listed classes in order to make common usage easier with improved optimizations:
- The MethodHandle class
- The MethodHandles class
- The MethodHandles.Lookup class
The preceding classes are all part of the java.lang.invoke package, which has been updated for the modern Java platform. These improvements were made possible through the use of lookup refinement with MethodHandle combinations, for loops, and try...finally blocks.
In this section, we will look at the following regarding:
- The reason for the enhancement
- Lookup functions
- Argument handling
- Additional combinations