Strings in Java | Types of Strings | What is String Pool ?

Publié le: 27 avril 2023
sur la chaîne: Techie coding
178
11

Strings are the type of objects that can store the character of values. A string acts the same as an array of characters in Java.

There are two ways to create a string in Java: 

1. String Literal (without using new Keyword)

2. Using new Keyword
👉 StringBuffer and StringBuilder


String pool is a storage space in the Java Heap memory where string literals are stored in Constant Pool and String which are created using new Keyword are stored in Non - Constant Pool.

====================================

Learn Core Java with Programs :

Java Playlist 👉    • Java Tutorials  

====================================

Learn Data Structures and Algorithm in Java :

DSA Playlist 👉    • DS & Algorithms + Implementation in Java  

====================================

Thank you for Watching :

Happy coding Keep Learning 😊

====================================

subscribe for more videos :

   / @techie_coding  

   / @techie_coding  

   / @techie_coding  

====================================

#javaprogramming #stringsinjava #strings
#javatutorialforbeginners #java #corejava #javabasics #javatutorial #stringbuilder #stringpool #heapsegment
#stringinjava #stringbuffer #techiecoding #introductiontostrings


Sur cette page du site, vous pouvez voir la vidéo en ligne Strings in Java | Types of Strings | What is String Pool ? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Techie coding 27 avril 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 178 fois et il a aimé 11 téléspectateurs. Bon visionnage!