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
Do you know why doesn't the java library use a randomized version of quicksort?
What is native method in java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Difference between == and .equals() ?
How would you dynamically allocate memory to an array?
What is difference between final and finally in java?
State the difference between creating string as new () and literal.
What is java and its types?
What are inbuilt functions in java?
Can we use different return types for methods when overridden?
Print Vertical traversal of a Binary Tree.
What access modifiers can be used for variables?
What is xslt in java?
What does regex mean?
Can we use both this () and super () in a constructor?