What is the difference between
String and String Buffer?
a) String
objects are constants and immutable whereas StringBuffer objects are not. In
object-oriented and functional programming, an immutable object is an object whose
state cannot be modified after it is created b) String class supports
constant strings whereas StringBuffer class supports growable and modifiable
strings.
Blog Author: Vijay Kumar
No comments:
Post a Comment