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 was java originally called?
Give me an example of array and linked list? Where they can be used?
What is basic concept of static in java ?
What is the use of default method in interface in java? Explain
What is a classloader in java?
what is the difference between cd & dvd ?
30 Answers Lovely Professional University, Satyam, Sibylsys,
Java is Pass by Value or Pass by Reference?
State the main difference between c++ and java?
can we write program without class
diff between abstract methods and interfaces with programing (code) example?
When is update method called?
Are generics important java?