Things to love in Java 11

The Things I Love and Use from Java 11

Hey, tea lovers! Since its inception, Java is dying. It is now 25 years old and it is dying. After 10 years again, people will say Java is dying. Well, it is something I and every Java developer are fed up with hearing. Let us keep ignoring it and focus on what Java is providing to keep up with the latest trend or requirements. I will be going over the things I think have improved the productivity of the developer since Java 11. We will talk about Java 11 only since it is LTS (Long Term Support) version and many people are using this only until the next LTS. Make your tea sip and code with Java 11. ...

August 22, 2020 Ā· 5 min Ā· Imran Shaikh
Reduce NullPointerException with Optional in Java 8 & Beyond

Reduce NullPointerExceptions with Optional in Java

Hey, Tea Lovers! Today we will talk about the Optional class in Java 8. But before that, Did you know that Tony Hoare, The inventor of the null reference, has said that the null reference is his ā€œBillion Dollar Mistakeā€? Since NullPointerException is the most common and frequently appeared error compared to others, especially for Java developers. I have seen people wrapping each code block in a try-catch to handle this sneaky fool. That’s how much we are scared of this exception. ...

June 23, 2020 Ā· 7 min Ā· Imran Shaikh