You shouldn't compare java and python because they have different purposes. Java is based on the OOP concept - it makes simple things kinda unneceserally difficult but simplifies larger scale projects. Python is built for smaller scale projects but things get hard the larger the project gets.