Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   how many objects r created (http://www.go4expert.com/forums/objects-r-created-t9023/)

shyam_oec 24Feb2008 22:27

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

dilip.klose 10Mar2008 15:15

Re: how many objects r created
 
three objects are created


All times are GMT +5.5. The time now is 07:30.