Java is much easier to set up than Python is. For one Java works with mise, asdf, sdkman and numerous other automatic tool managers. Python on the other hand works with none of those. I wouldn’t recommend either for being easy to set up. Ruby is much easier than both (including my favorite language, Kotlin) and has just as many nice features and is much easier to read than Python.