Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (4.1k points)
Which is better, Java or Python? Why?

1 Answer

0 votes
by (14.4k points)
Depends!
Java is probably more widely used, but not necessarily the best choice. If you are free to choose (which in real life people rarely are, because of legacy code, company strategies, university curricula, or simply availability on target machines), you should consider:
  • Frameworks/libraries: Does a particular framework or library exist, which fits your needs? Do you have to use a free library, or can you spend money on a commercial product?
  • Performance: Are there performance restrictions that require a compiler language? Are there perhaps "soft" performance expectations by the customer?
  • Language-task fit: Do you have a task that can more simply or more expressively be solved in one language or another?
  • Language features: Do you need specific language features (e.g., regular expressions), which one language supports better than the other?
  • Personal experience. Do you need excessive ramp-up time in one language, maybe because your knowledge in one language is significantly better than in the other?

Related questions

0 votes
1 answer
asked Sep 23, 2019 in Python by Karan Singh (4.1k points)
0 votes
1 answer
asked Oct 28, 2019 in Python by humble gumble (19.4k points)
0 votes
1 answer
asked Jun 15, 2019 in Big Data Hadoop & Spark by Aarav (11.4k points)

Browse Categories

...