- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Constructors of StringBuffer class in Java.
Following are the various constructors provided by the StringBuffer class.
S.N. | Constructor & Description |
---|---|
1 | StringBuffer() This constructs a string buffer with no characters in it and an initial capacity of 16 characters. |
2 | StringBuffer(CharSequence seq) This constructs a string buffer that contains the same characters as the specified CharSequence. |
3 | StringBuffer(int capacity) This constructs a string buffer with no characters in it and the specified initial capacity. |
4 | StringBuffer(String str) This constructs a string buffer initialized to the contents of the specified string. |
- Related Articles
- Java StringBuffer class.
- Methods of StringBuffer class in Java.
- Constructors of StringBuilder class in Java.
- Constructors of StringTokenizer class in Java.
- Difference between String class and StringBuffer class in Java
- Difference Between String and StringBuffer Class in Java
- Can an anonymous class have constructors in Java?
- Type of Java constructors
- Constructors in Java\n
- Is StringBuffer final in Java?
- Get all Constructors in Java
- What are constructors in Java?
- Sorting collection of String and StringBuffer in Java
- Why StringBuffer is mutable in Java?
- Can interfaces have constructors in Java?

Advertisements