r/javahelp • • Jan 15 '20

Experienced programmer who hasn't used Java since Java 8 5 years ago. How to get caught up?

Pretty much the question, but for the last 5 years I have been using anything else other than Java, but am looking to get back in touch with Modern Java, last I interacted with was when 8 was relatively new. What are some resources so I can get up to speed?

42 Upvotes

25 comments sorted by

63

u/[deleted] Jan 15 '20

A lot of people are still using Java 8 so yay you’re all caught up. That was quick!

16

u/OffbeatDrizzle Jan 15 '20

tldr: Now we have Set.of(), Map.of() etc. and the var keyword. There's also useful methods added to the string class

10

u/Roachmeister Java Dev Jan 16 '20

At my job we're hoping to move beyond 7 any month now.

2

u/paruu7 Jan 16 '20

Haha I work at a global bank dev and we just moved to 7

3

u/Roachmeister Java Dev Jan 17 '20

From the little I've heard about the banking industry, I'm a little surprised that you're not using Cobol. :-)

1

u/itshowitbeyunno Jan 16 '20

Dang lol. I'm still in college and have like 3 years. Do you think most companies will still be using 7/8 at that time?

5

u/jefwillems Intermediate Brewer Jan 16 '20

Yes

1

u/Roachmeister Java Dev Jan 16 '20

I certainly hope not. When we do move, which should be soon, we're jumping to 11. Of course, at the rate Oracle is going, that'll still be obsolete soon, but it's just not easy moving a codebase that numbers in the millions of SLOC.

0

u/x2mirko dev Jan 16 '20

I don't think so. It's getting harder to stay on 8 without paying oracle. The company I work for isn't necessarily very fast moving in terms of technology, but we'll be switching to OpenJDK 11 (because LTS) in the next few months. Of course, there are openjdk builds for java 8 and if you really want, you can stay. But even the providers for openJDK 8 are generally planning to stop support of that around 2023 (from what i've seen). You can probably still find someone you can stay with longer, but as I said, it's getting harder and harder and most companies will want to move to a safer place until then.

And if a company is still using < 8 now (and not just in one or two weird old systems that no one has to change because they just work, but rather over their whole system that they actively work on), I would think of this as a very, very red flag. Don't go work there, especially not as a college graduate who should want to learn as much as possible about modern technology for their resume. You maintaining Java 7 code will be good for that company, but not for you (apart from paying the bills, but that tends to not be your main problem as a software developer in the current market).

2

u/Nix-X Jan 16 '20

Why would you have to pay if you’re still on 8? Wasn’t the license changed only in 11?

1

u/x2mirko dev Jan 16 '20

Not quite. You are right that you can use old java 8 builds as long as you want, but won't get new builds with new security fixes (from oracle). You cannot do that if you or your customers value security (which you should). There are vendors for openJDK like adoptopenjdk or redhat that will support (i.e. provide updates for) java 8 for a longer timespan, but even that will run out eventually. That's what I was talking about.

1

u/Nix-X Jan 16 '20

Okay. That makes sense.

On an unrelated note, I’m taking the Oracle Certified Java Programmer exam next month, and I’m on the fence about whether to take the version 8 exam or the 11. Any tips?

My preference initially was SE 11, because that will be the new LTS for the next several years, but after hearing reports of how significantly harder (and trickier) the SE 11 exams are, compared to 8, I’m not so sure anymore.

2

u/x2mirko dev Jan 16 '20

Sorry, I have no experience with certificates. As far as I can see, that's mainly a career thing and only for certain pathes (which I'm not on) so I can't really give you a good recommendation. Personally I would think that proving your knowledge in java 8 should be good for a long time to come, but again, I don't know the processes that companies that rely on certificates for their hiring use. Probably a question for /r/cscareerquestions

1

u/Nix-X Jan 16 '20

Okay, ty

15

u/strghst Jan 15 '20

Your biggest issue are the functions from libraries you know that are now deprecated. As long as you look over documentation you should be more than fine as there were no major changes since version 8.

6

u/[deleted] Jan 15 '20

11 in the enterprise world is becoming more of the norm. It didn't add too much that affects day to day developers. Some really nice GC changes, and more in 13. Few API additions etc but those can easily be googled.

Biggest change would probably be more reactive programming libraries that have taken off in the past few years, depending on your company/area/team it might be of interest.

4

u/trisul-108 Jan 16 '20

Come on people, give OP some help, it's a good question.

4

u/sPoOtNiCky Jan 16 '20

Damn 85 years ago? You invent java or summ?

2

u/[deleted] Jan 15 '20

Look at the new features introduced in the later versions and do some reading/tutorials on them

1

u/[deleted] Jan 16 '20

You should consider watching the talk by Venkat Subramaniam last year on Devoxx:
https://www.youtube.com/watch?v=oRcOiGWK9Ts

1

u/8bagels Jan 16 '20

All you need to do is start coding again. Use an IDE that if you set to 11 (LTS) or 13 (latest release) it will suggest language improvements. I like IntelliJ best for this. And you learn the lowest hanging fruit by just having your IDE suggest improvements.

And don’t loose sleep over jigsaw/modules. It’s unlikely they will provide you value immediately. Just cross that bridge when you need to

1

u/RhoOfFeh Jan 17 '20

Watch pretty much any YouTube videos you can find by Venkat Subramaniam for the next week or two and you'll probably be fine.

-1

u/KiraShiv Jan 16 '20 edited Jan 16 '20

For now until next two years considering how many companies are updating to newer java versions. Just learn upto java 8 thoroughly and also learn Java 9, 10 new features. That's it you will be reinforced for next two years in Java. And learn Spring which is most important for a Java programmer nowadays. But just in case if you are thinking of super ready for every company learn upto Java 13 though I won't recommend such a hassle. Remember one most important thing, although java is releasing versions the other accompanying Tomcat or any third party API or even Java's own servlets versions are not getting update versions. They are mostly stuck at Java 9 compatibility. So no need to go through such hell to learn all those new fancy things unless you are thinking of Competitive programming. One more thing learn Angular in free time.