Tagged articles
Text Blocks
30 articles · Page 1 of 1
From Java 9 to 17 the language adds text blocks, switch expressions, helpful NullPointerExceptions, records and sealed classes, each illustrated with real‑world code, pitfalls and best‑practice tips that dramatically cut boilerplate, prevent bugs like missing breaks, and make data‑centric code far more concise.
Helpful NPEJavaRecords
0 likes · 16 min read

Java's String class is immutable and stored in a constant pool; the article explains the difference between == and equals, demonstrates common methods for inspection, transformation, splitting, and conversion, and shows best practices for concatenation with StringBuilder, thread‑safe StringBuffer, and newer utilities like join, repeat, format, and text blocks.
Equals vs ==JavaJava 8
0 likes · 10 min read

The article examines why many projects still cling to Java 8 and demonstrates eight transformative Java 21 features—including records, sealed classes, pattern‑matching for instanceof, switch expressions, text blocks, virtual threads, structured concurrency, and enhanced APIs—showing code examples and the benefits they bring to performance, readability, and maintainability.
JavaJava 21Records
0 likes · 11 min read

This article explores Java 17’s long‑term support release, highlighting new language features such as records, sealed classes, pattern matching, text blocks, var, enhanced switch expressions, and other practical improvements that simplify code, boost readability, and increase performance.
JDK 17RecordsSealed Classes
0 likes · 13 min read

This article explores JDK 17’s most impactful language enhancements—records, sealed classes, pattern matching, text blocks, var, and new APIs—showing how they reduce boilerplate, improve readability, and boost performance for Java developers transitioning from older versions.
JDK 17JavaRecords
0 likes · 14 min read

The article walks through the evolution from Java 8 to Java 21, comparing preview and standard features such as pattern‑matching instanceof, switch expressions, text blocks, the new HttpClient API, var type inference, virtual threads, records, immutable collections, improved try‑with‑resources, sequenced collections, and garbage‑collector enhancements, illustrating each with concrete code examples and practical recommendations.
JavaJava 21Text Blocks
0 likes · 16 min read

This article explores the powerful new features introduced in JDK 17—including records, sealed classes, pattern matching, enhanced switch expressions, text blocks, and the ZGC garbage collector—showing how they simplify code, improve readability, and boost performance for modern Java development.
JDK 17JavaRecords
0 likes · 10 min read

This article explores the most impactful Java 17 enhancements—including records, sealed classes, pattern matching, text blocks, var, improved switch expressions, stream API upgrades, enhanced NullPointerException, new garbage collectors, and the foreign memory access API—showing how they simplify code, boost performance, and modernize Java development.
JDK 17JavaRecords
0 likes · 15 min read

This article explores the most impactful Java 17 enhancements—including records, sealed classes, pattern matching, text blocks, var, enhanced switch, and new APIs—showing how they simplify code, improve readability, boost performance, and modernize Java development for both beginners and seasoned programmers.
JDK 17JavaSealed Classes
0 likes · 13 min read

Discover how Java 17’s new features—record classes, sealed classes, pattern matching, text blocks, enhanced switch expressions, var type inference, improved Stream API, and better NullPointerException messages—streamline code, boost readability, and increase performance, with practical examples and tips for modern Java development.
JDK 17JavaSealed Classes
0 likes · 11 min read

This article explains why upgrading from Java 8 to JDK 17 is essential, detailing new language features such as records, sealed classes, pattern matching, text blocks, var inference, enhanced switch, Stream API improvements, better NullPointerExceptions, modern garbage collectors, and the foreign memory access API, all illustrated with concise code examples.
JDK 17JavaSealed Classes
0 likes · 13 min read

JDK 17 introduces sealed classes, pattern matching, text blocks, and record types that together transform Java code into a more declarative, concise, and safe style, offering developers modern syntax, reduced boilerplate, compile‑time exhaustiveness checks, and better readability while maintaining performance and ecosystem compatibility.
JDK 17JavaRecord Classes
0 likes · 7 min read

This article explores the most impactful JDK 17 enhancements—including records, sealed classes, pattern matching, text blocks, improved switch expressions, var type inference, and advanced Stream API features—showing how they simplify Java code, boost readability, and increase performance for developers transitioning from older versions.
JDK 17JavaRecords
0 likes · 14 min read

This article explains why upgrading from Java 8 to the long‑term‑support JDK 17 is essential, detailing record types, sealed classes, pattern matching, text blocks, var inference, enhanced switch, and other modern features that dramatically reduce boilerplate, improve readability, and boost performance for backend developers.
JDK 17Sealed ClassesStream API
0 likes · 14 min read

This article walks through JDK 17’s most impactful language upgrades—including records, sealed classes, pattern matching, text blocks, var inference, enhanced switch, and new APIs—explaining their syntax, practical use cases, and how they simplify Java code while improving performance and maintainability.
JavaSealed ClassesText Blocks
0 likes · 12 min read

This article explores the major Java 17 language enhancements—including records, sealed classes, pattern matching, text blocks, var, and the new switch expression—showing how they reduce boilerplate, improve readability, and boost performance compared to legacy Java 8 code.
JDK 17JavaSealed Classes
0 likes · 13 min read

This article introduces a continuously updated Spring Boot 3 case collection and provides a step‑by‑step guide to nine Java string‑formatting methods—including String.format, MessageFormat, text blocks, number grouping, rounding, zero‑padding, printf, whitespace, and concatenation—complete with runnable code examples.
JavaMessageFormatString Formatting
0 likes · 6 min read

This article introduces the most useful JDK 17 language enhancements—including text blocks, improved NullPointerException messages, records, switch expressions, private interface methods, pattern matching, collection factory methods, new String APIs, Stream API extensions, the modern HttpClient, JShell, direct java file execution, and the Z Garbage Collector—providing code examples and practical guidance for Java developers.
JavaNew FeaturesRecords
0 likes · 15 min read


JavaEdgeJul 14, 2024 · Backend Development
This article walks through the sixteen JDK 14 JEPs, focusing on JEP 305’s instanceof pattern matching, JEP 361’s switch expressions, and JEP 368’s text blocks, providing design motivations, code comparisons, step‑by‑step usage, and practical tips for modern Java development.
InstanceofJDK 14JEP
0 likes · 18 min read

The article reviews the most notable Java 17 language enhancements—including text blocks, records, concise switch expressions, pattern‑matching instanceof, sealed classes, and richer NullPointerException messages—explaining their syntax, benefits, and providing side‑by‑side code comparisons with Java 11.
Java 17RecordsSealed Classes
0 likes · 9 min read

The article explains how Java Text Blocks (the triple‑quote syntax) replace cumbersome string concatenation for embedding multi‑line SQL, JSON, or HTML, improving readability, eliminating most escape sequences, and behaving as regular String constants at compile and runtime.
Code TutorialJavaMultiline Strings
0 likes · 4 min read

This article clarifies the confusion around Java's text block feature, tracing its introduction from the mistakenly cited Java 17 claim back to its true release in JDK 14 and JDK 15, and offers guidance on how to use it effectively.
JDKJavaJava 14
0 likes · 3 min read

Explore the key Java 15 enhancements—including Text Blocks for effortless multiline strings, Records and local records for concise data models, Pattern Matching for streamlined type checks, Sealed Classes to control inheritance, and the low‑latency ZGC—plus practical IDE tips for using these features effectively.
JDK15JavaRecords
0 likes · 9 min read

This article explains Java's Text Block feature (JEP 355), showing how it turns cumbersome, escape‑heavy multiline strings into clean, readable literals, details its processing steps, new escape sequences, and how to control indentation with the indent() method.
JDK13JDK15Java
0 likes · 5 min read

Java 14 introduces several language enhancements—including preview pattern‑matching for instanceof, concise record types, switch expressions with arrow syntax, and multi‑line text blocks—each demonstrated with code examples, setup steps, and compiled bytecode insights to help developers quickly adopt these productivity‑boosting features.
JavaJava 14Records
0 likes · 10 min read

This article introduces the JDK 14 release, lists its sixteen new features—including pattern‑matching instanceof, switch expressions, record types, and text blocks—explains required IDE support, and provides concrete code examples and usage guidelines for each feature.
New FeaturesRecordsSwitch Expression
0 likes · 8 min read

On March 17, JDK 14 was officially released, bringing 16 new JEPs—including pattern‑matching for instanceof, a new packaging tool, enhanced G1 memory allocation, JFR event streaming, helpful NullPointerExceptions, records, switch expressions, ZGC on macOS/Windows, and a second preview of Text Blocks—significantly expanding Java’s core capabilities.
JDK 14JEPJava
0 likes · 6 min read

This article outlines the five major preview features slated for Java 14, including instanceof pattern matching, text blocks with new escape sequences, record types, the incubating jpackage tool, and the deprecation of the ParallelScavenge + SerialOld garbage collector combination.
Text Blocksgarbage collectionjava14
0 likes · 9 min read

Java 13 introduced five new features, with Text Blocks gaining the most attention, while the upcoming Java 14 Early‑Access preview highlights three potential enhancements: improved NullPointerExceptions, a new non‑volatile memory mapped byte buffer mode, and the stabilization of Switch Expressions with pattern‑matching syntax.
JDKJavaNullPointerException
0 likes · 5 min read

This article summarizes the major JDK 11‑13 updates, including switch expression simplifications, multi‑line text block literals, dynamic AppCDS archives, ZGC memory‑release enhancements, a modernized socket API, new FileSystems methods, bulk NIO ByteBuffer operations, the Reiwa era in java.time, Unicode 12.1 support, and several deprecated features that have been removed.
Core LibraryJDKJava
0 likes · 10 min read
