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 |
How to access arraylist elements in java?
Are constructors methods?
Is a copy constructor?
What are java packages? What's the significance of packages?
What are different access specifiers in java? Explain
Is 64bit faster than 32 bit?
What is variable argument in java?
List java api that supports threads?
What is purpose of applet programming?
Which one will take more memory: an int or integer?
What are null interfaces? Give some examples?
How do you use, call, and access a static method in Java?