Is Python Easy ?, so, why Java is hard ? | Sololearn: Learn to code for FREE!

+2

Is Python Easy ?, so, why Java is hard ?

6/21/2021 8:46:54 AM

Farhan Kurnia Pratama

11 Answers

New Answer

+9

Java is not difficult, it's just big. The Java language itself contains only 52 keywords, Python has only 33. The Java API contains over 5,000 classes, The Python Package Index contains over 250,000 packages. It's far easier to create classes in Java than Python. Java is strongly typed whereas Python is dynamically typed. This means that you can do things in your code in Python that are regarded as errors in Java. If you come to Java from Python this can be a problem. Java is also heavily object oriented which forces students to confront classes and oop theory sooner rather than later as in Python e.g. even a "Hello World" program requires a class in Java. Java is not difficult it just isn't Python so don't try to think in Python when programming in Java. I have the opposite problem. I dislike Python and the "Pythonic" way of doing things because I am more familiar with doing things other ways.

+1

when it's your first language to start with and you learn it too quickly

+1

Farhan Kurnia Pratama Nothing is Hard. You just think like that. For you it's Hard for me it's easy. It is simple.

0

LMAO. the logic is almost the same but their syntaxes aren't

0

Java and Python are OOP, correct ?

0

0

As a person familiar with programming , not saying I'm pro or anything : No language is easy at first ! I assure u learning a simple command like print() in python could be hard as writing a massive code with hundreds of lines for a pro coder . So don't bother urself too much and focus on developing slowly . You will not gain anything in any field if u just keep thinking about hardness of programming .

0

Farhan Kurnia Pratama it's just lengthy as compare to Python.

0

Personally I find Java easier because javadoc is better for documentation

0

If a person just starts engaging in programming, I will recommend Python as his first programming language to learn. Synthaxes in Python are easier for beginners. However, Python does not have curly braces {} because it depends on indentation. this thing can become a trouble for someone who are quite careless. On the other hand, Java synthaxes to print Hello World as the output are quite harder for someone without programming experience. However, where there is a will, there is a way. Just keep practise and you will find the language that suits you well.

-1

So, what makes Java difficult?