+ 1

What happen if I try to run a java code in python

23rd Jan 2020, 1:08 PM
Shivam Singh
Shivam Singh - avatar
3 Antworten
+ 4
What happens if you go to the market and try to buy fruit using Klingon? 😉
23rd Jan 2020, 1:23 PM
HonFu
HonFu - avatar
+ 3
You'll surely get a syntax error if you save the Java code with a .py extension and try to run(interprete) it or run it in a Python console. If you save it as a .java file, it won't be identified in a Python IDE. It's best you try yourself as ~ swim ~ suggested.
23rd Jan 2020, 2:39 PM
A_Coder
A_Coder - avatar
+ 1
if you try it, python will say it fails. python is interpreted language and java is changed to bytecode like a compiled language so they are different type of language. nothing will happen but failed.
23rd Jan 2020, 2:25 PM
bright_byte
bright_byte - avatar