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 are data types in oop?
What are daemon Threads in java?
Differentiate Vector and ArrayList?
What is scanner in java?
What is the final class modifier?
What is string manipulation?
What are the differences between wait() and sleep()?
can we create a instance for intwerface?
You're given a Boolean 2D matrix, can you find the number of islands?
What is exception propagation?
What is the full name of java?
why the wait,notify,notifyall methods are placed in object class?these are the thread concepts why these methods are placed in Object class?
2 Answers Global Logic, Satyam,