Difference between the String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / anitha
yes, String is a immutable that means once the string
object is created it cannot be changed.
String Buffer: it is a mutable,this object is changed if we
make any modifications.
Is This Answer Correct ? | 8 Yes | 0 No |
Answer / sathya
String class is immutable i.e oncle created the value
cannot chage.
Stringbuffer class is mutable.The value can change.
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / latha
String is immutable and StringBuffer is mutable as most of
we know. In performance, StringBuffer is faster than the
String while performing simple concatenations.
Is This Answer Correct ? | 5 Yes | 0 No |
Why is a string immutable?
How many bytes is a char in java?
Write a function for palindrome and factorial and explain?
0 Answers Honeywell, Huawei, Zomato,
How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }
What is OOP Language?
How hashmap increases its size in java?
Difference between Superclass and Subclass?
How do you input a string in java?
What is the difference between equals() and?
What methods are called, When we navigate from one applet to another applet?
Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?
What is the use of bufferedreader?