Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I asked GPT4 your question, it answered:

In Java, strings are internally represented as objects of the String class, stored in a character array (char[]). Each character in the string is represented as a Unicode character, using UTF-16 encoding. This allows Java strings to handle a wide range of international characters.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: