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 |
Why char array is favored over string for the storage of passwords?
Define jre i.e. Java runtime environment?
Give us a program to check for parenthesis matching using stack.
What is thread priority?
How do we make a class serialize?
What is the list interface?
State some situations where exceptions may arise in java?
What is mvc in java?
Is class is a data type?
what is a package?
What is diamond operator in java?
What is a thin-client application?