Author: codebun

StringBuffer class in Java.

Java StringBuffer class is a mutable class in java. It means We can change the string when we are going to use StringBuffer class in Java. StringBuffer is same as String class only the difference is it can be modified. Example: public class Main { public static void main(String args) { StringBuffer sb = new

String class in java with interview questions and answers

String class in java and its methods. A string is a class from lang package. Which is public and final class extends Object class and implements Serializable, Comparable<String>, CharSequence interface.  String Class in Java is immutable class. It means once you create an object of String class. It will not be modified read more about immutable String. Some