Tag

Text Blocks

0 views collected around this technical thread.

Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Mar 4, 2025 · Fundamentals

Master Java String Formatting: 9 Practical Techniques with Code Samples

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
Master Java String Formatting: 9 Practical Techniques with Code Samples
Java Architect Essentials
Java Architect Essentials
Aug 8, 2024 · Fundamentals

New Features of JDK 17: Text Blocks, Enhanced NPE, Records, Switch Expressions and More

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.

JavaRecordsText Blocks
0 likes · 15 min read
New Features of JDK 17: Text Blocks, Enhanced NPE, Records, Switch Expressions and More
Architecture Digest
Architecture Digest
Aug 23, 2023 · Fundamentals

Key New Features in Java 17: Text Blocks, Records, Switch Expressions, Pattern Matching, Sealed Classes, and Improved NullPointerException

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.

RecordsSealed ClassesSwitch Expression
0 likes · 9 min read
Key New Features in Java 17: Text Blocks, Records, Switch Expressions, Pattern Matching, Sealed Classes, and Improved NullPointerException
Cognitive Technology Team
Cognitive Technology Team
Sep 12, 2022 · Backend Development

Using Java Text Blocks to Simplify Multi‑line String Literals

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 TutorialJavaStringBuilder
0 likes · 4 min read
Using Java Text Blocks to Simplify Multi‑line String Literals
macrozheng
macrozheng
Sep 25, 2020 · Backend Development

Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC

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
Master Java 15: Text Blocks, Records, Pattern Matching, Sealed Classes & ZGC
Architect's Tech Stack
Architect's Tech Stack
Feb 23, 2020 · Fundamentals

Top 5 New Features Expected in Java 14

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.

Garbage CollectionJavaJava14
0 likes · 9 min read
Top 5 New Features Expected in Java 14
Java Captain
Java Captain
Oct 4, 2019 · Fundamentals

JDK 11‑13 Enhancements: Switch Expressions, Text Blocks, Dynamic CDS, ZGC Improvements, Socket API Rewrite, New FileSystem Methods, NIO Updates, Time API, I18N, and Feature Removals

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
JDK 11‑13 Enhancements: Switch Expressions, Text Blocks, Dynamic CDS, ZGC Improvements, Socket API Rewrite, New FileSystem Methods, NIO Updates, Time API, I18N, and Feature Removals