The MethodDelegate and MulticastDelegate classes provide support for delegates in Java by using BCEL to generate byte code on the fly.