Strings

Native strings in C++ are represented by an array of characters, terminated by '/0'. Strings in Java are objects of the String class and are immutible, i.e. cannot be modified. There is no operator overloading in Java (as there is in C++) but the + operator when applied to strings causes the creation of a new String object which is the sum of the two strings to which the operator is applied. The '+','=' and '==' operators are also valid when dealing with the String class, however be aware that the '==' is used to compare the reference addresses and not the data contained by the objects.