Java, Spring, Microservices, Interview, Coding.
"ajay": This creates a string literal "ajay". String literals are stored in the String pool, a special memory area in Java. The String pool ensures that only one copy of the same string literal exists in memory, even if it's assigned to multiple variables. This approach is memory-efficient and