DEV Community


Discussion on: Learn Java from scratch with these easy steps

cheetah100 profile image
Peter Harrison

As a Java Developer for about 20 years I wouldn't start with Java these days. Python is certainly a popular language and has many benefits in terms of being more succinct. What takes 500 lines in Java can take 100 in Python.

Learning Java is also pretty pointless without learning all about the other parts of the Java ecosystem such as Spring, Hibernate and Maven. To become productive with Java might be longer than with other platforms.

If you are looking at web applications you will also be looking at learning various JavaScript frameworks such as Angular, React or Vue. Each of these comes with its own ecosystem of tooling.

As a former teacher of Java I recommend starting your programming journey with something like Python first. It is easier to get started with the basics without getting to grips with objects and classes out of the gate. Python still gives you objects and classes, but does not force you to use them. Learning Python will give you core competence with all the common programming concepts such as variables, conditionals, loops, functions and so on. You might not need to learn Java after this.

However, Python will form a good grounding for Java later while being easier to learn initially.

michelemauro profile image

If we are talking of someone who is learning its first language, I totally agree with you. I may even hint at Scala as another interesting first language, but you need a very skilled teacher, as most resources online are not oriented to first-language learners.

But if you have in mind a junior or a professional who is eyeing a new field to enter into, Java is a very good choice. The market is huge, the OSS ecosystem is vast, and the resources are everywhere. So, as a second or third language is an excellent choice.