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 sort an unsorted array in java?
What is the use of a copy constructor?
What is the file type?
Difference between abstract and concrete class ?
What will happen if a thrown exception is not handled?
0 Answers ABB, Akamai Technologies, Infogain,
What is the purpose of using the java bean?
Consider that class classA, abstract class classB, and final classC have been defined.Which one of the following is correct? 1. classA extends classC implements classB 2. class A extends classB, classC 3. classA extends classB 4. classB implements classC
give me the answer of this code class A extnds String This code we can write r not in Java? Explain?
What is OOP's Terms with explanation?
why Runnable interface is preferable than extending the Thread class?
7 Answers Aizza, College School Exams Tests, Sybrant Technologies, Wipro,
What does serializing data mean?
Write a program to search a number in the given list of numbers.