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 is the final method?
What is tcp ip in java?
What is java util function?
What is polymorphism java example?
Explain the private field modifier?
Can It is possible to synchronize the constructor of a Java Class?
What is flag in python?
Can an anonymous class be declared as implementing an interface and extending a class?
Can keyword be used as identifier?
Explain about oops concepts.
0 Answers Aditi Placement Service,
What is variable and example?
What Is Query Throttling in java?