String Initialization in Java
The java.lang.String class provides a way to work with a sequence of characters. String is a class(not a primitive ) and also you can say a reference type. Ways to Create a String Object. a) Using the new keyword. b) Using string literals. Interning The String literal “Hello” is stored in the String Pool ( […]