Core Java
-
Octopus Scanner: Java Build Tools and Malware
Alvaro Munoz recently posted “The Octopus Scanner Malware: Attacking the open source supply chain” on the GitHub Security Lab site.…
Read More » -
Lambda Expressions Before And After Java 8
Quick guide to few example programs on before and after Java 8. Java 8 Concepts further simplifies the code and…
Read More » -
Java 14: Helpful NullPointerException Messages
A new JVM option, -XX:+ShowCodeDetailsInExceptionMessages, has been introduced in Java 14, in order to provide helpful NullPointerException messages showing precisely…
Read More » -
Convert time unit to duration in Java
java.util.concurrent.TimeUnit represents time durations in Java at a given unit of granularity and provides utility methods to convert across units.…
Read More » -
Switch as an expression in Java with Lambda-like syntax
As of Java 14, the switch expression has an additional Lambda-like (case ... -> labels) syntax and it can be…
Read More » -
All you wanted to know about Throwable
This article is a tutorial about exceptions. But not the usual one. There are many of those that tell you…
Read More » -
Record type in Java
JDK 14, released in March 2020, introduced records (preview language feature) which provide a compact syntax for declaring classes whose…
Read More » -
10 Best Practices to Handle Java Exceptions
In this article, we will see the best practices to handle Java Exceptions. Exception handling in Java is not an…
Read More » -
Looking at Java Records
JEP 359, available as preview feature in JDK 14, introduces records to Java. Records are an easy way to model…
Read More »