r/learnjava • • Jan 06 '21

what is the best way to learn java

i mean what is the roadmap for a good java developer . so that i am employable with a good salary.

is learning scala or kotlin worth it ? at this point of time in my career.

and yeah i know that these are just tools to just solve a problem . but some tools have more priority than others , and i think java happens to be one .

i know basic c,c++,java,python and basic dsa. and i have roughly around 8 months before start for searching jobs

thanks in advance :)

edit:kotlin

42 Upvotes

7 comments sorted by

23

u/JiEToy Jan 06 '21

Any tool you study in-depth will go to waste because there's a good chance your company uses another one. Learning scala won't help you get better, it will let you put another thing on your cv.

Instead of trying to learn new things, try to get better at writing projects. Loads of students can do all kind of test exercises with maybe 5 classes, but these are not what you will see in real life projects. In real life projects you will have to work with code written by others, big projects with hundreds of classes each containing many methods.

Try and find some bigger projects written by someone else and get them to work on your own computer. Now try to add something to it, be it something small or a complete functionality.

Another thing that you will run into a lot while working on a project, is that you have to set up stuff locally after an update. If you work at a company that makes a software program, the software is likely to consist of multiple elements that each are versionised. When one of the core elements gets a new version, the elements making use of it have to be updated. Also, test environments often require mocking certain parts of the program like data or a database connection.

I have no personal examples, but maybe others can help with that, or you can find some projects yourself through google or w/e. It doesn't matter if it's python or java, you just need to get experienced with reading code made by others and in big projects.

3

u/Environmental_Ad1634 Jan 06 '21

OCP versión 11 books from Jeanne Botany and Scott Selloff are really good. Those help me to get to another level .

2

u/chris1666 Jan 06 '21 edited Jan 06 '21

What can you build with Java ? It seems to have two main demands as far as the market, using its latest framework spring for building for large companies or using android to build mobile apps to make money for companies. If you haven't completed courses on either of those .....then you might want to head that way, as I am.

From what I have read just on this subreddit ....learning 3-4 different languages is a mistake, at least starting out.

What can we show if we practice the basics of 4 languages, more of the basics. What ive seen hammered here is to get really good with one language so that you have advanced skills on one language that you can transfer to another. That would include building projects with it and learning the framework. And what I said there totally applies to myself and Im working on that.

IF you wanted to learn android with java that would help as its one of the easier ways to build with java. If you are good with C++ have you build any games with it , as thats the most common 'project' that Ive seen built with it.

2

u/[deleted] Jan 06 '21

There are educative institutions on which companies trust to hire people, but if you want the hard way... If humans have organized this kind of hierarchies to meet demand...

2

u/funny_funny_business Jan 06 '21

You’re always “not going to have something” that’s listed on the job requirements, so it’s not always wise trying to grab all the skills in the world; better to just be really good a at few, ok at a few others and maybe some familiarity with some others too.

An example would be: pro with Java and Spring, ok with SQL, databases and some cloud computing, and maybe familiarity with docker. Obviously the order of those items will change based on your interests.

I would say, though, that Spring shows up in a ton of job descriptions so I think knowing a bit of that is probably better than knowing Scala or Kotlin. If you’re doing big data then Scala might be useful (cause it’s used with Apache Spark) and Kotlin is useful if you’re doing Android development.

2

u/[deleted] Jan 07 '21

Companies can teach people tools. They can't teach people fundamentals and good coding habits.

MPJ (fun fun function) has a great video about staying relevant as a programmer, and basically his advice is to focus on the fundamentals or programming, not the tools and languages.

If you're going to focus on Java though -

Here's a Java roadmap

I agree with the other comments - build projects. Start with something at your comfort level and go from there. It can also be helpful to work with other people's code - find open source Java projects on Github, search through their issues and find something you can improve or fix.

-1

u/w1Ld_D0G Jan 06 '21

See, the language and framework that you'll use during your job or to get a job completely depends on the company as you can achieve same results from different language/framework.

I can come up with many examples but that's out of scope of this message.

Now coming to language you should study, it depends on you what do you want to do with it.

Android apps - kotlin Webdev -htm, css, javascript/typescript Ml - python BigData - python/R REST API - python/java/javascript

...and I can go on and on. Do some research and then you can move ahead.

If you want to learn java, then you can start off with understanding the basics concepts, semantics of the language and build small project.

Once you're comfortable with the language, you should start with ds/algo. There are many websites for that like leetcode, hackerrank, codechef etc etc.

I learnt from my college learning platform and hackerrank. Hackerrank has a section dedicated for java beginners which is basically a roadmap, along with it they have detailed explanations and discussion board for doubts.

Honestly it is about understanding the concepts and having solid foundations as you can switch to another language based on the requirements.