0

Can you write a programme combining java and Python?

I am learning both the languages. I just need to know whether its possible or not.

17th Nov 2021, 5:16 PM
Kalana Ekanayake
Kalana Ekanayake - avatar
3 Réponses
17th Nov 2021, 5:23 PM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 1
A modern approach to polyglot programming (that is, using multiple languages in a single project), is possible with the GraalVM virtual machine. https://www.graalvm.org/ With this you can easily call Python code from Java, or vice versa, and also other languages such as Ruby, C++, Javascript or R. But another question is, if this is really practical or necessary. Using many different tech stacks in a single projects increases complexity, and makes maintenance more difficult.
17th Nov 2021, 7:56 PM
Tibor Santa
Tibor Santa - avatar
+ 1
in short, yes, it is possible
18th Nov 2021, 5:14 AM
Shadoff
Shadoff - avatar