StringBuffer

StringBuffer is a predefined class, used for storing group of characters. StringBuffer object can be created in only way and that is by using new operator. Syntax: StringBuffer sb=new StringBuffer(“Welcome”); The StringBuffer objects are mutable which means we can modify the content of the object. Example StringBuffer sb=new StringBuffer(“hai”); sb=new StringBuffer(“bye”);   Methods of StringBuffer: […]

Continue reading