🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › lang › String.html
String (Java SE 17 & JDK 17)
April 21, 2026 - The class String includes methods for examining individual characters of the sequence, for comparing strings, for searching strings, for extracting substrings, and for creating a copy of a string with all characters translated to uppercase or to lowercase. Case mapping is based on the Unicode Standard version specified by the Character class. The Java language provides special support for the string concatenation operator ( + ), and for conversion of other objects to strings.
🌐
javaspring
javaspring.net › blog › java-17-string
Java 17 Strings: A Comprehensive Guide — javaspring.net
Java 17 strings offer a rich set of features and methods that are essential for various programming tasks. Understanding the fundamental concepts like immutability and the string pool is crucial for writing efficient code.
Discussions

String.format() is 3x faster in Java 17
Glad to see some of the small enhancements we did in 17 get recognition. Not sure if this one matters, but String::format shows up in profiles every now and then so it felt reasonable to me to give it some TLC in between larger projects. More on reddit.com
🌐 r/java
41
298
October 30, 2021
dart - Optimizations of "+" operand for strings in JDK 17 - Stack Overflow
We know that in JDK8 and below, strings using a plus sign for concatenation will be compiled into StringBuilder for performance optimization, but after JDK9, it will be implemented using the java.l... More on stackoverflow.com
🌐 stackoverflow.com
When will Java get type aliasing?
It probably won't. I don't see a JEP for it. More on reddit.com
🌐 r/java
18
0
March 13, 2019
It looks like JDK20 is getting a String Templates preview!
While I’m not that happy about the \{} syntax, it’s really cool that Java will finally have this. More on reddit.com
🌐 r/java
82
147
July 6, 2022
🌐
TechWell
techwell.com › techwell-insights › 2022 › 05 › new-language-features-java-17
New Language Features in Java 17 | TechWell
May 5, 2022 - Text blocks automatically format string literals. Text blocks are a two-dimensional representation of text. ... Sealed classes provide a more fine-grained control over extensibility of classes. Earlier, a class could either be package-private (default), or public. A sealed class is declared with the sealed modifier, and the class declaration also includes the classes that are allowed to extend it with the permits modifier. ... Records is a new feature for declaring data carriers.
🌐
DEV Community
dev.to › msmittalas › new-way-to-use-strings-in-java-17-2i1l
New way to Use Strings in Java 17 - DEV Community
June 10, 2022 - Before Java 15, Writing SQL, HTML, JSON or any Polyglot scripts in String were difficult. It was ugly and difficult to read. For example : Following HTML in Java : ... With "JEP 378: Text Blocks" introduced in Java 15 ( Java 17 LTS), We can use two dimensional block of text.
🌐
Ideas2IT
ideas2it.com › blogs › java-17-heres-a-juicy-update-on-everything-thats-new
Java 17 New Features: Here's a Juicy Update in JDK17
This JEP facilitates the porting of the JDK to run on AArch64 architecture for macOS platforms, ensuring that Java applications remain compatible and performant as Apple shifts its hardware to the new architecture. ... Pattern matching allows the conditional extraction of components from objects to be expressed more concisely and safely. Let's consider the below example, here we are first testing whether obj is a string, then the declaration of string variables, and then type casting obj to a string into variables.
🌐
Medium
medium.com › hprog99 › java-17-new-features-e3fd0a3cff48
Java 17 new features. Java 17, also known as Java SE 17, is… | by Hiten Pratap Singh | hprog99 | Medium
December 10, 2022 - As you can see, the Text Blocks feature allows you to create multi-line strings without having to use escape characters or concatenation. This makes it easier to create strings that contain multiple lines of text, such as HTML or JSON. Java 17 also introduces a new Records feature, which allows you to create simple data classes in a more concise and readable way.
🌐
Medium
cloudsolutionarchitect.medium.com › new-features-in-java-17-ed690eb60750
New Features in Java 17. Java 17 introduces several new features… | by Arun | Medium
August 3, 2025 - Answer: @java.lang.Record (marker type). Also considered implicitly final. Java 15 to 17 finalized some of the most awaited features, such as Sealed Classes, Pattern Matching, and native packaging tools.
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › jdk.jdi › com › sun › jdi › StringReference.html
StringReference (Java SE 17 & JDK 17)
April 21, 2026 - The returned string is the equivalent of the mirrored string, but is an entity in the client VM and can be manipulated like any other string.
Find elsewhere
🌐
DZone
dzone.com › coding › java › exploring exciting new features in java 17 with examples
Exploring Exciting New Features in Java 17 - DZone
October 12, 2023 - In Java 17, a new feature known as "Text Blocks" was introduced to simplify the writing of multiline strings and make the code more readable when working with long text content. Text Blocks allow you to write multi-line strings in a more natural ...
🌐
Java Concept Of The Day
javaconceptoftheday.com › home › java new string methods – from java 8 to java 17
Java New String Methods - From Java 8 To Java 17
February 26, 2022 - From time to time, new methods are added to String class so that working with strings becomes effortless and simple. join() in Java 8, chars() and codePoints() in Java 9, isBlank(), lines(), repeat(), strip(), stripLeading() and stripTrailing() in Java 11, indent(), transform(), describeConstable() and resolveConstantDesc() in Java 12, formatted(), stripIndent() and translateEscapes() in Java 15 are some new Java string methods. In this post, we will see all the new methods added to String class from Java 8 to Java 17.
🌐
Javatpoint
javatpoint.com › java-17-new-features
Java 17 new features - Javatpoint
Java Program to swap two string variables without using third or temp variable.
🌐
Aegissofttech
aegissofttech.com › home › insights › text blocks in java 17: multi-line string handling tutorial
Text Blocks in Java 17: Multi-Line String Handling Tutorial
October 2, 2025 - READ – Understanding Java 17 ... double-quotes (`”””`), they enable natural text organization in the source code, retain line breaks, and lessen the need for escape sequences....
🌐
Baeldung
baeldung.com › home › java › core java › new features in java 17
New Features in Java 17 | Baeldung
January 16, 2024 - In this tutorial, we’ll talk about the news related to the new version of the Java ecosystem, Java SE 17, including the new features and the changes in its release process, LTS support and licenses.
🌐
Reddit
reddit.com › r/java › string.format() is 3x faster in java 17
r/java on Reddit: String.format() is 3x faster in Java 17
October 30, 2021 - Yes, String::formatted is just a non-static variant of String::format. So this optimization applies equally to both. ... That's pretty cool. Highest version Java I've ever seen in the wild in Fortune 500 software is 11. Next project for me is in 8. Hope we get to 17 someday.
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › docs › api › java.base › java › util › Formatter.html
Formatter (Java SE 17 & JDK 17)
April 21, 2026 - An interpreter for printf-style format strings. This class provides support for layout justification and alignment, common formats for numeric, string, and date/time data, and locale-specific output. Common Java types such as byte, BigDecimal, and Calendar are supported.
🌐
JavaTechOnline
javatechonline.com › home › java 17 features
Java 17 Features - JavaTechOnline
May 3, 2026 - Moreover, the previous version ... Character, Short, Integer, String, and Enum types. The new feature allows developers to use patterns to match against the value of an object of any type. Before getting into enhanced switch statements in Java 17 features, let’s get into some ...
🌐
Javaspecialists
javaspecialists.eu › archive › Issue294-String.format-3x-faster-in-Java-17.html
[JavaSpecialists 294] - String.format() 3x faster in Java 17
However, in Java 17, we instead try to parse the format String manually. If all the FormatSpecifiers are "simple", then we can avoid the regex parsing. If we do find one that is not simple, then it parses from then onwards. This speeds up the parsing by a factor of 3 for simple format Strings.