i know Strings are immutable in java and i just read some theory about it Once a String is declared it cannot be changed . i declared a String and changed it's value just by appending some value to it . it should not have happened
   String s = "amol";
   s = s + "abc";
   System.out.println(s); //output is amolabc
 
     
     
     
    