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 |
Describe the process as to how substring() methodology mechanisms in java.
How do I get a substring?
Why Java is not purely object oriented?
50 Answers Elitecore, Persistent, Reliance, Wipro,
what are literals in java?
did interface can implementation method ? i know its not possible but my interviewer said its possible ..but how..? any one have idea ???
How TreeMap sorts the objects inside it?? suppose if have include one employee object and one car object. On what basis it will sort?
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?
What is the use of parse function in java?
what is the difference between HashMap and Hashtable
17 Answers Value Labs, Virtusa,
why not override thread to make a runnable? : Java thread
Why lambda expression is used in java?
What are internal and external variables?