Вы находитесь на странице: 1из 1

String is a built-in class

Strings are object

Strings are immutable/not changeable

unless reassign the string value,strings are not changeable

Strings are not changeable.

StringBuffer class -mutable/changeable


-Thread safe -Multiple strings cannot be changed simultaneously
-default capacity -16

StringBuilder class-mutable/changeable
-Not Thread safe - Multiple Strings can be changed simultaneously

Вам также может понравиться