Skip to content

Commit 6bf0ce0

Browse files
committed
2 parents ae817f9 + 03056dd commit 6bf0ce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Frequently asked Java Interview questions
225225

226226
**[⬆ Back to Top](#table-of-contents)**
227227

228-
5. ### What is string constant pool
228+
6. ### What is string constant pool
229229

230230
String constant pool is a storage space inside the heap memory area where string literals are stored. It is also known as String pool or String Intern Pool. This is privately maintained by String class and it is empty by default. Whenever you create a new string object, JVM checks for presence of string object in the string pool. If the string value is already present, the same object reference is shared with the variable, else a new string is created in the pool with the variable reference stored in stack area.
231231

0 commit comments

Comments
 (0)