How to find the length and capacity of a string buffer ?

Answer Posted / therathna

By using length and capacity methods.


For this use JDK api we get complete details

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sorting algorithm is in place?

533


Explain about class in java?

607


What is the difference between checked exception and unchecked exception?

518


What is a local class in java?

575


What does a boolean method return?

622






Can You Have Virtual Functions In Java?

579


what is encapsulation in java? Explain

657


Java.util.regex consists of which classes?

536


What is implicit object in java?

541


What is the parse method in java?

555


Explain about doubly linked list

610


Is java a software?

511


What is the symbol for line break?

596


Can we convert stringbuffer to string?

559


How to perform binary search in java?

565