当前位置:网站首页>Properties of string
Properties of string
2022-06-30 09:26:00 【Orangejuicer】
- **String class : Representative string .**Java All string literals in the program ( Such as “abc” ) Are implemented as examples of this class .
- String It's a final class , representative An immutable sequence of characters .
- Strings are constants , Use double quotation marks to indicate . Their values cannot be changed after creation .
- String The character content of the object is stored in a character array value[] Medium .
- String constants are stored in String constant pool , The purpose is to share . example :String str = “hello”;
- String non constant object stored in Pile up in . example :String s1 = new String();
String splicing :
- The concatenation results of constants and constants are in the constant pool . And there will be no constants with the same content in the constant pool .
- As long as one of them is a variable , The result is in the pile
- If the result of splicing calls intern() Method , The return value is in the constant pool




边栏推荐
- Flink sql -- No factory implements ‘org. apache. flink. table. delegation. ExecutorFactory‘.
- Why must redis exist in distributed systems?
- Niuke rearrangement rule taking method
- Esp32 things (I): Preface
- Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
- Opencv learning notes -day1 (image reading display imread, imshow, namedwindow)
- Introduction to the runner of mmcv
- Esp32 things (3): overview of the overall system design
- List set export excel table
- 8.8 heap insertion and deletion
猜你喜欢

Talk about the kotlin cooperation process and the difference between job and supervisorjob

Based on svelte3 X desktop UI component library svelte UI

Terminal -- Zsh of terminal three swordsmen

Talk about the job experience of kotlin cooperation process

Flutter 0001, environment configuration

Metasploit practice - SSH brute force cracking process

Talk about how the kotlin process started?

Agp7.0|kts makes a reinforced plug-in

Express の post request

Express file upload
随机推荐
Summary of Android knowledge points and common interview questions
Esp32 (7): I2S and I2C drivers for function development
Rew acoustic test (V): equipment required for test
127.0.0.1, 0.0.0.0 and localhost
Talk about how the kotlin collaboration process establishes structured concurrency
Find the number that appears only once in the array
Get to know handler again
Maxiouassigner of mmdet line by line interpretation
Based on svelte3 X desktop UI component library svelte UI
Opencv learning notes-day6-7 (scroll bar operation demonstration is used to adjust image brightness and contrast, and createtrackbar() creates a scroll bar function)
Esp32 things (3): overview of the overall system design
Esp32 things (V): analysis of common API of esp32 of Swiss Army knife
Use V-IF with V-for
Interviewer: do you understand the principle of recyclerview layout animation?
Esp32 things (II): sharpening the knife without mistaking firewood - make preparations before project development
Opencv learning notes -day13 pixel value statistics calculation of maximum and minimum values, average values and standard deviations (use of minmaxloc() and meanstddev() functions)
Using appbarlayout to realize secondary ceiling function
Torchvision loads the weight of RESNET except the full connection layer
Tclistener server and tcpclient client use -- socket listening server and socketclient use
Linear-gradient()