It may sound so silly to ask but still I want to know what will happen if i assign value of string within for loop. Let's say
String name = " darsha" ;
for ( i = 0 ; i < 10 ; i ++ )
{
name = darsha ;
}
What will happen internally? Will there be only one name instance in string pool or 10