what is meant by string pooling?
Answer Posted / sivadasan
See,
String s = new String("Shiva");
Its creating two instances and one reference.
In the Two instance one is stored in Constant pool and
another one is stored in temp' pool.
What about String s = "Shiva";
Anybody can, pls clarify...
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What is array pointers ?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
What is jit compiler ?
What is a void in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
How do I get 64 bit java?
Can we access the non-final local variable, inside the local inner class?
How can we pass argument to a function by reference instead of pass by value?
explain multi-threading in java?
What are latest features introduced with java 8?
What is json parser in java?
What are the two types of java programming?
What is the difference between normal report & matrix report?
How do you check whether the list is empty or not in java?
How much ram can a 64 bit processor theoretically?