1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

how many objects r created

Discussion in 'Java' started by shyam_oec, Feb 24, 2008.

  1. shyam_oec

    shyam_oec New Member

    1. StringBuffer s1 = new StringBuffer("abc");
    2. StringBuffer s2 = s1;
    3. StringBuffer s3 = new StringBuffer("abc");
    How many objects are created ?
     
  2. dilip.klose

    dilip.klose New Member

    three objects are created
     

Share This Page