A char[] is an arrayof primitive numbers of type char. All it provides is a length attribute, and a way to get and set a charat a given index. A Stringis an object, of type java.lang.String,…
java string vs char array performance
1 Article
1