- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
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
Methods of StringBuilder class in Java.
Following are the various constructors provided by the StringBuilder class.
S.N. | Constructor & Description |
---|---|
1 | StringBuilder() This constructs a string builder with no characters in it and an initial capacity of 16 characters. |
2 | StringBuilder(CharSequence seq) This constructs a string builder that contains the same characters as the specified CharSequence. |
3 | StringBuilder(int capacity) This constructs a string builder with no characters in it and an initial capacity specified by the capacity argument. |
4 | StringBuilder(String str) This constructs a string builder initialized to the contents of the specified string. |
- Related Articles
- Java StringBuilder class.
- Constructors of StringBuilder class in Java.
- Methods of StringBuffer class in Java.
- Methods of StringTokenizer class in Java.
- BitSet class methods in Java
- Methods of the Matcher class in Java Regex
- Methods of the Pattern class in Java Regex
- Math class methods in Java Programming
- What are Class/Static methods in Java?
- Why static methods of parent class gets hidden in child class in java?
- List methods of a class using Java Reflection
- What is the purpose of the StringBuilder class in C#?
- Static import the Math Class Methods in Java
- Can private methods of a class be accessed from outside of a class in Java?
- How to access the private methods of a class from outside of the class in Java?

Advertisements