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
can java object be locked down for exclusive use by a given thread? : Java thread
Are private methods final?
What is a nonetype?
What is class forname?
What are different exception types exceptions available in java ?
What does it mean to be immutable?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What is module in project?
What are different types of classloaders?
Difference between nested and inner classes ?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
Explain differences between collection api and stream api?
Can we call virtual funciton in a constructor ?
What are the restrictions imposed on method overriding?
Can a static block throw exception?