InterviewSolution
Saved Bookmarks
| 1. |
Explain The Difference Between Stringbuilder And Stringbuffer Class? |
|
Answer» STRINGBUILDER is unsynchronized WHEREAS STRINGBUFFER is synchronized. So when the application needs to be RUN only in a single thread then it is better to USE StringBuilder. StringBuilder is more efficient than StringBuffer. StringBuilder is unsynchronized whereas StringBuffer is synchronized. So when the application needs to be run only in a single thread then it is better to use StringBuilder. StringBuilder is more efficient than StringBuffer. |
|