what is append in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what is append in java

13th Sep 2018, 4:06 PM
D Dheeraj
D Dheeraj - avatar
2 Answers
+ 2
append() is a function in java which is mostly used to append something to a string using StringBuffer Note: String is Immutable so we use StringBuffer For eg: https://code.sololearn.com/chiS9AWsBeEr/?ref=app
13th Sep 2018, 4:25 PM
Rishabh
Rishabh - avatar
+ 1
The append() method concatenates the string representation of any other type of data to the end of the invoking StringBuffer object. It has overloaded versions for all the built-in types and for Object
14th Sep 2018, 6:45 AM
meenal deshpande