How to find the length and capacity of a string buffer ?
Answers were Sorted based on User's Feedback
Answer / vijayakumar chinnasamy
StringBuffer conatain a method called length() to find out
the length and capacity() to findout the capacity of
stringbuffer.
ex:
StringBuffer buffer=null;
buffer.length();
buffer.capacity();
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / therathna
By using length and capacity methods.
For this use JDK api we get complete details
| Is This Answer Correct ? | 2 Yes | 2 No |
What is an argument in java?
Explain about static imports in java?
What is anagram in java?
What is byte data type?
What is the difference between equals() and == in java?
What is adapter in java?
What are the procedures?
What is the difference between the size and capacity of a vector?
What is the most important feature of java? What is an interface?
What is the basic concepts of OOPS?
Say any two properties in beans?
What is the generic function?