I know this question has been answered a few times by other users from different context, but i would like to know this from Java language user perspective. And i know the immuatble difference please mention any other diference if any.
-
Related: stackoverflow.com/questions/8881291/…RaminS– RaminS2016-08-21 17:07:35 +00:00Commented Aug 21, 2016 at 17:07
-
bing.com/search?q=java%20String%20vs.%20Char%20arrayAlexei Levenkov– Alexei Levenkov2016-08-21 17:23:09 +00:00Commented Aug 21, 2016 at 17:23
-
Class and array are different structures. They both have different interface. Java has pool for String literals. Single char can't represent all symbols like ones created by surrogate pairs (🐼), so String also provides support for codepoints, not only characters.Pshemo– Pshemo2016-08-21 17:25:08 +00:00Commented Aug 21, 2016 at 17:25
Add a comment
|