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


Please Help Members By Posting Answers For Below Questions

I don’t want my class to be inherited by any other class. What should I do?

571


Explain the purpose of garbage collection in Java?

566


How many threads can java run?

554


When super keyword is used?

587


Can two objects have same hashcode?

560






What is append function?

562


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

579


What about interthread communication and how it takes place in java?

541


What does yield method of the thread class do?

574


Define immutable object?

575


Is 0 true or false?

510


What does flag mean in java?

537


Explain the difference between abstraction and encapsulation.

535


Compare java and python.

573


What is constructor chaining and how is it achieved in java?

564