A method handle is a typed, directly executable reference to an underlying method, constructor, field, or similar low-level operation, with optional transformations of arguments or return values. These transformations are quite general, and include such patterns as conversion, insertion, deletion, and substitution ...Let's have a quick short program hello-world to use this method handle. The ff. code also uses the new Java 7's multi-catch statement:
Note: Package java.dyn was renamed to java.lang.invoke package.
I use NetBeans IDE 7.0.1 - Output:
Underscores in Binary Literals with Java 7
Read File Into String with Java 7