does == work for strings java code example Example: what are strings in java Strings are an array of characters, but not in Java.