[Java] String and StringTable detail explanation source code explanation

insert image description here

1 Overview

2.String creation

2.1 char array creation

This is the most basic, because strings, strings, are strings together, and the result is an char[]array of multiple characters, such as

 String s = new String(new char[]{
   
    
    'a','b'

Guess you like

Origin blog.csdn.net/qq_21383435/article/details/123597501