what is meant by string pooling?
Answer Posted / kumar
in string constant pool one object will be created and share that object form all required references.
hence the main advantage of scp is memory is utilized and performancce will be improved
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I don’t want my class to be inherited by any other class. What should I do?
Explain the purpose of garbage collection in Java?
How many threads can java run?
When super keyword is used?
Can two objects have same hashcode?
What is append function?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What about interthread communication and how it takes place in java?
What does yield method of the thread class do?
Define immutable object?
Is 0 true or false?
What does flag mean in java?
Explain the difference between abstraction and encapsulation.
Compare java and python.
What is constructor chaining and how is it achieved in java?