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 many bits are in a sentence?
how we can create packages in java?
What is jvm? Why is java called the platform independent programming language?
java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
Can we clone singleton object?
Which variable is the independent variable?
Can we create object of inner class in java?
Do I need to import java.lang package any time? Why?
What is casting ?
What is a variable simple definition?
What is a container in a gui?
What are recursive functions?