what is the difference between String and StringBuffer classes?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / tarun choudhary
The String class is used for strings that are not allowed to change. The StringBuffer class is used for strings that may be modified by the program.
| Is This Answer Correct ? | 15 Yes | 0 No |
Where is java located?
What are different data structures in java?
Explain differences between checked and unchecked exceptions in java?
How to reduce flicking in animation?
How to create an instance of a class if the class has private constructor?
how your day start in your company
how to write a server program and sending the mails to the server using smtp protocol please help me
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"); } } }
Can a class be private or protected in java?
Which class is the superclass for all the classes?
What is the difference between a method and a function in alice?
Explain the pointers in Java?