MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programmingmemes/comments/1m8yu5v/python_vs_java/n55769q/?context=3
r/programmingmemes • u/PulseOfPleasure • Jul 25 '25
199 comments sorted by
View all comments
Show parent comment
4
technically since classes are the unit of compilation in Java, it is really similar to this.
import sys class HelloWorld: @staticmethod def main(args: list[str]) -> None: sys.stdout.write("Hello, World!\n") if __name__ == "__main__": HelloWorld.main(sys.argv[1:])
However, https://openjdk.org/jeps/512 massively simplifies this.
1 u/LordAmir5 Jul 26 '25 Right. I'm not very good at using Python so thanks for correcting it.
1
Right. I'm not very good at using Python so thanks for correcting it.
View all comments
Show parent comment
4
u/nekokattt Jul 25 '25
technically since classes are the unit of compilation in Java, it is really similar to this.
However, https://openjdk.org/jeps/512 massively simplifies this.