Java Weekly, Issue 510

Unused variables, pinned threads, class-file API, concurrent undo cycle, strategy pattern, and managerial skills!

Java Weekly, Issue 509

Virtual threads, Java 21, more switch enhancements, GraalOS, JVM stack size, and updating events in EDA!

Java Weekly, Issue 494

Simplified SSL in Spring Boot, structured concurrency in Java 21, nulls in Collectors, XSS in Java, and WASM on Docker.

What Is Elasticsearch?

Learn about Elasticsearch: a powerful search and analytics engine that can revolutionize how we handle and understand data.

Handle NoSuchElementException When Reading a File Through Scanner

In this tutorial, we’ll explore handling the ‘NoSuchElementException: No line found’ exception when reading a file using the Scanner class in Java. We’ll explain its root cause and present three solutions: defensive programming, exception handling, and checking file emptiness.