Java 14 new features |Text Blocks in Java 14 | Java Beam

Publié le: 26 septembre 2020
sur la chaîne: Java Beam
830
7

Here is the Java 14 feature text blocks with real time example how we were writing email templates, multiline strings, json or sql queries in java file and now using the java 14 feature text block how we can write in a simple way has been explained.


Text Blocks were introduced as a preview feature in Java 13 with the goal to allow easy creation of multiline string literals. It’s useful in easily creating HTML and JSON or SQL query strings.
In Java 14, Text Blocks are still in preview with some new additions. We can now use:
Backslash for displaying nice-looking multiline string blocks.
\s is used to consider trailing spaces, which are by default ignored by the compiler. It preserves all the spaces present before it.



Java 14 new features |Text Blocks in Java 14 | Java Beam


#JavaBeam #Java14NewFeatures #TextBlocksInJava14 #JDK14NewFeatures #Java #TextBlocksInJava


Sur cette page du site, vous pouvez voir la vidéo en ligne Java 14 new features |Text Blocks in Java 14 | Java Beam durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java Beam 26 septembre 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 830 fois et il a aimé 7 téléspectateurs. Bon visionnage!