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 java’s garbage collected heap?
What is generics in java interview questions?
Can you pass functions in java?
What is the difference between iterator and list iterator?
Why destructor is not used in java?
State the difference between strings and arrays.
what is session facade ?
What is continuity of a function?
how to transactions(Bank transactions) in business process in ejb?
What is a container in a gui?
How can we use primitive data types as objects?
What is data type example?