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

How to create a thread in java?

693


What is stack class in java?

639


Define locale.

678


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

650


Write a factorial program using recursion in java?

607






What are void pointers?

836


What is native code?

629


What is the purpose of methodology?

735


Explain about collection interface in java?

639


What does math floor () do?

648


How do you remove all elements from an arraylist in java?

603


Do I need to import java.lang package any time? Why?

859


What are keyboard events?

710


what is the use of bean managed and container managed with example?

1593


Should a main method be compulsorily declared in all java classes?

630