In
SCJP 5: Study Guide Edition: 2007, page 420.
"To make
Java memory more efficient , the JVM sets aside a special area of memory called "String constant pool". [Perfect]. When the compiler encounres a
String literal, it checks the pool to see if an identical String already exists.
I don't understand this statement.
a) How can the compiler come to know about the memory.
b) I thought JVM will set aside "String pool" only after the application starts and not during compile time.
Shouldn't the statement be talking at "run time" rather than "compile time" ?
Please correct me if am wrong.