Java String - Javatpoint
Java String - Javatpoint
strings
example
The above code, converts a char array into a String object. And displays the String objects s1, s2,
and s3 on console using println() method.
The java.lang.String class provides many useful methods to perform operations on sequence of
char values.
Do You Know?
What code is written by the compiler if you concatenate any string by + (string
concatenation operator)?
⇧ SCROLL TO TOP
Learn more