Java String Pooling
What is a String Literal ? A String literal is a sequence of characters between quotation marks, such as “string” or “literal”. Strings are Immutable Once a String object is created, it cannot be changed (short of using something like reflection to get at private data). But what about this code: String start = "Hello"; String end = start.concat( " World !" ); In above code snippet, no String…
View On WordPress













