| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Rate Thread | Display Modes |
|
|
#1 (permalink) |
|
Banned
Join Date: Sep 2007
Age: 25
Posts: 88
Thanks: 0 Thanked 4 Times in 4 Posts Thanks: 0
Thanked 4 Times in 4 Posts
Rep Power: 0
|
In Java1.5 along with String and StringBuffer, StringBuilder is also included...
In Java1.5 along with String and StringBuffer, StringBuilder is also included...
The only difference between StringBuffer and StringBuilder is StringBuffer is Synchronized and StringBuilder is not Synchronized. |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Mar 2008
Posts: 13
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: In Java1.5 along with String and StringBuffer, StringBuilder is also included...
A string is a immutable i.e we can't edit the data.
StringBuffer is mutable, we can edit the data. StringBuilder is also immutable but it can perform some special operations These r difference between string,stringBuffer & stringBuilder. |
|
|
|
|
|
#4 (permalink) |
|
Junior Member
Join Date: Mar 2008
Posts: 13
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
|
Re: In Java1.5 along with String and StringBuffer, StringBuilder is also included...
A string is a immutable i.e we can't edit the data.
StringBuffer is mutable, we can edit the data. StringBuilder is also immutable but it can perform some special operations These r difference between string,stringBuffer & stringBuilder. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| difference between String & StringBuffer | preethisingh | Java Interview / Technical Questions | 1 | 15-02-07 06:07 PM |
| String and StringBuffer | sumahals21 | JAVA Technologies | 5 | 19-01-07 04:03 PM |