what is the difference between String and StringBuffer classes?
Answer Posted / kishore cheruku
a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.
| Is This Answer Correct ? | 23 Yes | 0 No |
Post New Answer View All Answers
What does s mean in regex?
What is the difference between serial and throughput garbage collector?
Give us a program to check for parenthesis matching using stack.
Can you use this() and super() both in a constructor?
What is the largest number a double can hold?
What is string in java?
what is object slice?
hr interview how many minutes asking question
How to split arraylist elements in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is udp in java?
What is intern method in java?
What are keywords in java?
Difference between error and exception
How many types of operators are there?