There is one more key difference - I2P has C++ implementation[1] which allows it to be run on the low-performance machines, e.g. routers. It is impossible in case of Java. I wish it had been Rust, though...
It's lazy to equate implementation language with performance profile.
In some abstract case - yes, it's possible. In many concrete cases, including I2P, Java-written code is quite resources-consuming for anything close to the router hardware.