Let’s continue with our lessons during this corona lockdown. In the last three posts we discussed textblocks, instanceof and record types in Java 13 and 14. record improved instanceof text blocks In this post, let’s talk about a proposed feature, […]
Let’s continue with our lessons during this corona lockdown. In the last two posts we discussed textblocks and instanceof in Java 13 and 14. improved instanceof text blocks In this post, we’ll discuss a very cool feature introduced in Java […]
Last post we saw multiline strings in Java 13. Let’s continue with a new topic; improved version of instanceOf operator introduced in Java 14. Let’s look at the use of instanceOf keyword in checking for the type of an object […]
Multi-line strings in Java are finally here in the form of Text blocks. It’s available as a preview feature. So you need to use the switches ––enable-preview and ––release 13 or –release 14 while compiling and executing this code. public […]
One of the features that I am really excited about is pattern matching in Java. Pattern matching is a powerful feature in languages like Scala and Kotlin. You have an input token that’s matched against patterns. switch-case statement comes close, […]