Is the lifetime of the temporary string long enough here?
28477
Guaranteed lifetime of temporary in C++?
74620
is the + operator less performant than StringBuffer.append()
76841
When should one use final for method parameters and local variables?
80807
Is a Java string really immutable?
2063
Can a local variable's memory be accessed outside its scope?
50403
safe string slice
91420
Java equivalent of unsigned long long?
145784
Is the pointer guaranteed to be > a certain value?
54854
Does C# optimize the concatenation of string literals?
152224
String initialization with and without explicit trailing terminator
87863
String Constant Pool
104352
Long code snippets that are relevant to the question
116167
What is the maximum possible length of a .NET string?
15831
Questions about Java's String pool
142179
String literals: Where do they go?
53269
bash - True if the length of string is (non)zero?
50883
how string terminates in java?