Core Java includes java.lang.reflect.Proxy to synthesize interface implementations in memory at runtime, and java.lang.invoke.MethodHandles to look up strongly typed method handles checked once at lookup time so the JIT can inline them smoothly.
More lessons in Complete Core Java