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
How do you represent a space in regex java?
Can keyword be used as identifier?
What are static methods?
Explain about exception propagation?
Which list does not allow duplicates in java?
What are the differences between abstract class and interface?
What are the main uses of this keyword?
Can we serialize arraylist in java?
Is null an object in java?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
What are some characteristics of interference class?
Why we use methods in java?
Differentiate between a constructor and a method? Can we mark constructors final?
how to run ecllipse with jettyserver for windows environment using batch file
Can we sort hashset in java?