For complex enough and long-running application your run-of-the-mill Rust (so probably what AI would generate) will likely be slower than your run-of-the-mill Java.
I know this is a heresy in some online religious groups pretending to care about engineering but that's reality.