What is the Java’s internal represention for String? Modified UTF-8? UTF-16?
Java uses UTF-16 for the internal text representation The representation for String and StringBuilder etc in Java is UTF-16 https://docs.oracle.com/javase/8/docs/technotes/guides/intl/overview.html How is text represented in the Java platform? The Java programming language is based on the Unicode character set, and several libraries implement the Unicode standard. The primitive data type char in the Java programming … Read more