String: All you need to know
In this blog, we are going to learn about Strings, and how do we use them in Java. A string is a sequence of characters. String is a class in Java. String is immutable; the value once created can't be changed. String is not a premitive data type. https://www.youtube.com/live/ZuXe-v0hlyg?si=PFMWkIZcfMs0848n Why are String immutable? Strings are immutable on purpose. Because in order to optimize Strings in Java, we have String Pool, where all the strings recides.Whenever…
