Answers for "what is stringbuffer"

2

string vs stringbuffer

The main similarity between String and StringBuffer class is that both are
thread safe. 
The main difference is that String is immutable; StringBuffer is mutable.
Posted by: Guest on December-05-2020
0

input using stringbuffer

StringBuffer sbuffer = new StringBuffer();
Scanner input = new Scanner(System.in);
System.out.println("Enter a string");
sbuffer.append(input.nextLine());
Posted by: Guest on September-03-2020
0

stringbuffer javascript

Internet Explorer is the only browser which really suffers from this in today's world. (Versions 5, 6, and 7 were dog slow. 8 does not show the same degradation.) What's more, IE gets slower and slower the longer your string is.

If you have long strings to concatenate then definitely use an array.join technique. (Or some StringBuffer wrapper around this, for readability.) But if your strings are short don't bother.
Posted by: Guest on March-17-2021

Code answers related to "what is stringbuffer"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language