Difference between String, StringBuffer and StringBuilder

Published: 26 October 2017
on channel: Share2People
181
6

String
1. Immutable
2. If content is fixed and won’t change frequently.

StringBuffer
1. Mutable
2. If content is not fixed and keep on changing but thread safety is required.

StringBuilder
1. Mutable
2. If content is not fixed and keep on changing and thread safety is not required means you can allow multiple thread running on that content then we can use StringBuilder

Check more at http://www.liesbeek.com


On this page of the site you can watch the video online Difference between String, StringBuffer and StringBuilder with a duration of hours minute second in good quality, which was uploaded by the user Share2People 26 October 2017, share the link with friends and acquaintances, this video has already been watched 181 times on youtube and it was liked by 6 viewers. Enjoy your viewing!