how many objects r created

shyam_oec's Avatar, Join Date: Nov 2007
Contributor
1. StringBuffer s1 = new StringBuffer("abc");
2. StringBuffer s2 = s1;
3. StringBuffer s3 = new StringBuffer("abc");
How many objects are created ?
0
dilip.klose's Avatar, Join Date: Mar 2008
Newbie Member
three objects are created