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 |
Difference between JVM and JRE?
Is java code slower than native code?
What do you mean by hashing?
Can we define a package statement after the import statement in java?
What is the length of a string?
Can a class have more than one object?
Java.util.regex consists of which classes?
wht is customised exception?
1 Answers Logica CMG, Novell, Prudential,
Assume a thread has lock on it, calling sleep() method on that thread will release the lock?
What is a constructor, constructor overloading in java?
we have a 100 classes at that time which class we have to write main method? pls help me
What are 5 boolean operators?