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 |
What is meant by 'bit masking' in java?
Can java list be null?
What is nextline method in java?
What does microservices mean?
Sample code to retrieve objects from HashMap in sorted ascending order?
How do you read and print a string in java?
What is a condition in java?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain
Explain about field hiding in java?
Why main method is static in java?
How many bits are used to represent unicodde,ASCII,UTF-16 and UTF-8 characters?
How to make a non daemon thread as daemon?