Core Java
-
Local records or classes to improve the readability of stream operations
Java 14 came with the preview language feature of Records — a special lightweight class, comparable to similar constructs in…
Read More » -
Look for exceptions, errors in thread dumps
Thread dumps are vital artifacts to troubleshoot/debug production problems. In the past we have discussed several effective thread dump troubleshooting…
Read More » -
Tycoon: Ransomware Targeting Java’s JIMAGE on Multiple Platforms
The Blackberry Research and Intelligence Team and KPMG’s UK Cyber Response Services Team have reported “Threat Spotlight: Tycoon Ransomware Targets…
Read More » -
Java Text Blocks
Text Blocks are a JDK Enhancement Proposal (JEP 355) available as preview language feature in JDK 13 and 14. It…
Read More » -
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 »