+ 2
What are the faults of python. Java vs python
So I started learn java about w month ago because I was confused with oop programming. I was learning python cause people said it was easier but after awhile I started to LOVE JAVA. python has simple syntax but java I could code without thinking now. maybe because if it's structure. It's verbose but in a easy to understand way. MY question is wat is java good for and what is python good for. And please don't say "java is good for android 😂". What are the faults and benefits of each language. thx 😁
1 ответ
+ 1
Differences, it's mostly about static/dynamic types. Python has whitespace as syntax, vs. brackets and braces, and Java tends to be a lot more wordy. Both tend to be compiled languages. Java files compile to .class files and Python files compile to .pyc files.
A Key Difference: Duck Typing. The biggest difference between the two languages is that Java is a statically typed and Python is a dynamically typed. Python is strongly but dynamically typed. This means names in code are bound to strongly typed objects at runtime.