If you want to develop mobile applications, web applications, and internet of things Java should be your choice . Python can as well be used for a wide range of application, but its edge over Java is simplicity and use in data science (Big data or Data mining), Artificial intelligence and machine learning.