当前位置:网站首页>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




边栏推荐
- Express の Hello World
- Do you want the dialog box that pops up from the click?
- Couldn't load this key (openssh ssh-2 private key (old PEM format))
- Deep Learning with Pytorch- A 60 Minute Blitz
- QT connection to Shentong database
- Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5
- Get to know handler again
- Icon resources
- Wechat development tool (applet)
- Esp32 things (VIII): music playing function of function development
猜你喜欢

So the toolbar can still be used like this? The toolbar uses the most complete parsing. Netizen: finally, you don't have to always customize the title bar!

ES6 learning path (III) deconstruction assignment

Express の Hello World
![[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.](/img/77/eb66ec83b34c251e732d495fbaa951.jpg)
[shutter] solve failed assertion: line 5142 POS 12: '_ debugLocked‘: is not true.

float

Abstract factory pattern

Interpretation of orientedrcnn papers

Talk about the job experience of kotlin cooperation process

Opencv learning notes -day10 logical operation of image pixels (usage of rectangle function and rect function and bit related operation in openCV)

Pit encountered by fastjason
随机推荐
Introduction to the runner of mmcv
Flutter 0001, environment configuration
Rew acoustic test (IV): test principle of rew
Solution to pychart's failure in importing torch package
Talk about the job experience of kotlin cooperation process
Experience of an acmer
桂林 稳健医疗收购桂林乳胶100%股权 填补乳胶产品线空白
Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5
Esp32 things (x): other functions
ES6 learning path (II) let & const
Challenge transform() 2D
Interpretation of source code demand:a rotation equivariant detector for aerial object detection
QT connection to Shentong database
Metasploit practice - SSH brute force cracking process
Generate directory in markdown
Opencv learning notes -day2 (implemented by the color space conversion function cvtcolar(), and imwrite image saving function imwrite())
Rew acoustic test (III): generate test signal
Opencv learning notes -day8 (keyboard typing (waitkey()); Wait for typing) action: triggers some action when the appropriate character is typed using the keyboard)
Reading notes of "Introduction to deep learning: pytoch"
Opencv learning notes-day14 drawing of image geometry (rect class rotatedrect class, rectangle drawing rectangle circle drawing circular function line drawing line function ellipse drawing elliptic fu