r/learnjava • • Dec 01 '19

I learned Java back in 2010. What's are good resources for getting me caught up with modern (JDK 13) features?

The last time I used Java extensively for projects was many years ago. I'm looking for recommendations for good resources for getting me caught up with modern "best practices" and features they've added in the most recent JDK's.

For example, once upon a time everybody used ArrayLists but I heard people have transitioned to something else for lists. My goal would be to get to the point where my Java code looks like it was written in 2019 and not 2010. Any recommendations would be appreciated. Thanks!

42 Upvotes

5 comments sorted by

8

u/ffffuuuubbbbaaaarrrr Dec 01 '19

https://youtu.be/cUqcSFLnk_E Java 9/10/11 - What's new and why you should upgrade

2

u/Capa-riccia Dec 01 '19

I would start right from the source, on the Oracle docs site. This covers the language. Here you will find a lot on information and you will be able to compile a list of what is new for you.

As a starter, I think you should investigate collections, the Stream API of collections, lambdas and try with resources first. These features change the way you think.

Usually good tutorials with examples are on the Baleding site and on Mkyong,com. These two and StackOVerflow should get you up to date real fast.

I recommend creating a test project and trying out everything, then rethink some of the code you have.

2

u/gonzohst93 Dec 01 '19

People not still using ArrayLists is news for me. I think the newest popular features came around Java 8. Not sure how old that is but you could look into a book that focuses on java 8 or newer.

2

u/MaraudingAvenger Dec 01 '19

I would focus on jdk 11, since it's the long term support version. Grab Amazon coretto and build a couple of things. Biggest changes are lambdas and performance tweaks -- check https://medium.com/criciumadev/its-time-migrating-to-java-11-5eb3868354f9 for some light examples too

0

u/[deleted] Dec 01 '19

[deleted]

1

u/WikiTextBot btproof Dec 01 '19

Java version history

The Java language has undergone several changes since JDK 1.0 as well as numerous additions of classes and packages to the standard library. Since J2SE 1.4, the evolution of the Java language has been governed by the Java Community Process (JCP), which uses Java Specification Requests (JSRs) to propose and specify additions and changes to the Java platform. The language is specified by the Java Language Specification (JLS); changes to the JLS are managed under JSR 901.

In addition to the language changes, other changes have been made to the Java Class Library over the years, which has grown from a few hundred classes in JDK 1.0 to over three thousand in J2SE 5.


[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.28