Concept Flow - Why strings are special in Java
Create String Literal
Check String Pool
Use Existing
Reference String Object
Use String in Program
When you create a string literal, Java checks a special place called the string pool. If the string exists, it reuses it; otherwise, it adds it. This makes strings special and memory-efficient.
