String basis

1.String referred immutable character sequence

2. located in the java.lang package

3.java string is a sequence of Unicode characters

View source code:

 

 

 

The constant pool three categories:

1. The global character constant pool  

2.class file constant pool

3. runtime constant pool

String class test case

 

Guess you like

Origin www.cnblogs.com/laurarararararara/p/11448731.html