Java - String Object

A string represents a group of characters. Strings are "String" class objects in Java.Creating Strings1. We can create a string by declaring and initializing a String class object directly. Eg: String str = "Hello";

2. We can create a "String" class object using new operator Eg: String str = new String("Hello");

s1 = This is Javas2 = I like its3 = SanthoshLength of s1 = 12s2 joined with s1 = This is JavaI like itThis is Java by Santhoshs1 starts with ThisI like SanthoshUpper case version of s1 = THIS IS JAVALower case version of s1 = this is java