This blog will give you samples of awesome new feature added since Java 7. I’ll showcase at least one major improvement for each Java version, all ...
For further actions, you may consider blocking this person and/or reporting abuse
"Instanceof without the cast" unfortunately doesn't work the way you describe in your example. You still need to assign a new variable name to the casted instance:
Thanks Martin, there's always a bug somewhere! I updated the code snippet as you suggested 😎
No problem. I really wish they did it in the way you've described. If you want this kind of inference, you'd have to use Kotlin; there it works this way.
Oh well I‘m jeleous of the Kotlin developers😜 Anyways, happy coding!
Worth mentioning and up to jdk11 compatible - GraalVM Community Edition: graalvm.org/
The futur of Java :)
Yes definititely, thanks for mentioning this one Loïc! I've heard GraalVM can help with faster startup times and lower memory consumption. This can help, especially for those large SpringBoot apps that take ~1minute to start. It's also an important part to move to FaaS.
All topics straight to the point! Thank you very much, Philipp!
Thanks man appreciated!
Great article! Really helpful in remembering the major changes between Java 8 and Java 15. Thank you.
Wow Philipp, a beautiful write up, top to bottom 👏🏼. Because of your article I’m definitely getting my hands on the newer Java versions, I’ve been too comfortable in Java 8
Great to hear thanks😀 I'm sure you'll enjoy the benefits of the newer Java features!
The new switch case syntax is applied in JDK 14, not 12. Kindly check it.
Yes true. You can see this distinction in the table of contents (experimental feature). I didn't mention this again in the paragraph title to keep it short. Anyways, it's a great feature in my opinion, less verbose😀
This has become my go-to link whenever I have to refresh these features from Java 8 to Java 15 for interviews. Thank you.