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 a static method in java?
Tell some latest versions in JAVA related areas?
What is a JAR file?
What are the differences between throw and throws?
Can a class have a static inner class?
How does arraylist size increase in java?
What are class types in java?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is a function argument in java?
What is meant by 'Class access modifiers'?
Is space a char?
How do you find the maximum number from an array without comparing and sorting?
What is a pattern what is an anti pattern?
What is the purpose of using javap?
Explain different forms of polymorphism?