In general in any project we use lot of string's , as
String name="John"; ...etc
But According to JVM String literal cannot be GC'd
even though we are not having use with name after sometime ie
name = null;
that object cannot be GC'd
Why it is Designed in that way which may lead to out of memory Problems