How to find the length and capacity of a string buffer ?
Answer Posted / 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 |
Post New Answer View All Answers
what are abstract functions?
What is map in java?
Explain the differences between static and dynamic variables?
Is set thread safe java?
What are adapter classes?
What is an example of a constant variable?
What happens if main method is not static?
What is t type java?
Is multiple inheritance supported by java?
Write a java program to count the number of words present in a string?
What is the difference between length and size in java?
Why convert an applet to an application?
What is difference between hashset and hashmap in java?
When do we need to use internal iteration? When do we need to use external iteration?
What is the use of callablestatement?