are strings objects in java?
A Java String contains an immutable sequence of Unicode characters. Unlike C/C++, where string is simply an array of char , A Java String is an object of the class java. lang. ... You can assign a string literal directly into a String variable, instead of calling the constructor to create a String instance.