characters are a primitive data type, and as such can be compared using the ==, !=, or any other valid comparison operator.