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
How do you check if a string is lexicographically in java?
How large is a boolean?
Why is java called the platform independent programming language?
Is java a utf 8 string?
What is a bufferedreader?
how its run?
What happens if an exception is not handled in a program?
Is the empty set a singleton?
Is it safe to install java on my computer?
What is a concrete classes? Is Java object class is concrete class?
When do you get classcastexception?
Are registers volatile?
Which class represents the socket that both the client and server use to communicate with each other?
Is binary a low level language?
Write an algorithm for quick sort?