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 synchronized methods and synchronized statements in java programming?
What is comparable and comparator interface? List their differences
Difference between static binding and dynamic binding?
What is arrays aslist in java?
Does list allow duplicates in java?
Explain the importance of finally over return statement?
What is a class object?
Explain java coding standards for variables ?
why would you use a synchronized block vs. Synchronized method? : Java thread
How many inner classes can a class have?
What is the maximum length of a url?
What is a predicate method?
What is a class reference?
What is functional interface in java?
When is finally block not called?