10 Replies Latest reply: Jan 2, 2008 4:03 AM by 807603 RSS

    how can you say String objects are immutable and Stringbuffers are mutable

    807603
      suppose
      String s1="ABCDEF";
      s1="PQRST";


      System.out.println(s1); it prints the PQRST
      but here the sting object s1 is replaced with PQRST insted of that ABCDEF