String Templates (Second Preview)
GPTKB entity
Statements (24)
Predicate | Object |
---|---|
gptkbp:instanceOf |
Java language feature
|
gptkbp:allows |
embedding expressions in strings
|
gptkbp:availableOn |
gptkb:Java_SE_21
gptkb:OpenJDK_21 |
gptkbp:category |
Java preview feature
|
gptkbp:enables |
custom string processors
easier string interpolation |
gptkbp:featureType |
language enhancement
|
gptkbp:hasSyntax |
STR."Hello, \\{name}!"
|
https://www.w3.org/2000/01/rdf-schema#label |
String Templates (Second Preview)
|
gptkbp:improves |
readability of string expressions
security of string construction |
gptkbp:introducedIn |
gptkb:JDK_21
|
gptkbp:proposedBy |
gptkb:JEP_430
|
gptkbp:relatedTo |
string interpolation
template processors text blocks |
gptkbp:requires |
--enable-preview flag
|
gptkbp:status |
preview feature
|
gptkbp:successor |
gptkb:String_Templates_(First_Preview)
|
gptkbp:bfsParent |
gptkb:Java_SE_22
gptkb:Java_22 gptkb:JDK_22 |
gptkbp:bfsLayer |
7
|