. Explain Java String Pool.
Answer / nashiinformaticssolutions
A collection of strings in Java's Heap memory is referred to as Java String Pool. In case you try to create a new string object, JVM first checks for the presence of the object in the pool. If available, the same object reference is shared with the variable, else a new object is created.
| Is This Answer Correct ? | 0 Yes | 0 No |
Can final class have constructor?
Is java map thread safe?
What is the final keyword in java?
How many bits is a double?
for what purpose we use applets ?
What is complexity in java?
Is a class subclass of itself?
What is the point of polymorphism java?
What is the disadvantage of synchronization?
What is predicate in java?
why the constructor should be used in class,if there is no constructor what will happen?
Is void a type?