Question: what is the difference between character array and string?
Answer: Both Character Arrays and Strings are a collection of characters but are different in terms of properties. String refers to a sequence of characters represented as a single data type. Character Array is a sequential collection of data type char. ... Built in functions like substring(), charAt() etc can be used on Strings.