Java can do some fairly powerful stuff with reflection and classloaders, but isn't anywhere near the level of runtime flexibility you can get with Smalltalk or Ruby where the entire running program is a mutable data structure you can programmatically introspect over and modify.