Difference between string, string builder, and string buffer?
Answer / Babita Baghel
String is an immutable class in Java, meaning once created, it cannot be changed. StringBuffer and StringBuilder are mutable classes that can be modified after creation. StringBuilder is optimized for use with modern JVMs and should generally be preferred over StringBuffer due to slightly better performance.
| Is This Answer Correct ? | 0 Yes | 0 No |
How can we create objects if we make the constructor private ?
how and when compiler knows that the Java code throws the checked Exception.
Which is the class in java?
Why is java so important?
What makes a function well defined?
What is the difference between call by reference and call by pointer?
What is comparable and comparator interface? List their differences
WHAT IS JDK,JVM,CLASS DEFINE ALL?
What are the types of methodology?
Define reflection.
Why super is first line in java?
What is singleton service?