10 Replies Latest reply on Jan 2, 2008 11:01 AM by 807603

    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