Strings are defined as an array of characters. The difference between a character array and a string in Java is, that the string is designed to hold a sequence of characters in a single variable whereas, a character array is a collection of separate char-type entities.
#java #datatypes #coding #computer
you can also refer to this website:
https://www.geeksforgeeks.org/data-ty...