-2

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.

3
  • Related: stackoverflow.com/questions/8881291/… Commented Aug 21, 2016 at 17:07
  • bing.com/search?q=java%20String%20vs.%20Char%20array Commented 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. Commented Aug 21, 2016 at 17:25

1 Answer 1

1

String is the class that contains into itself char array, as well as different ready methods for you. When you use simply char array you must implement your own methods, while String has already built-in popular and optimized methods.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.