Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is the main advantage of passing argument by reference?

906


What is a variable in java?

1029


How many bytes is double?

913


When will we use them?

973


What class of exceptions are generated by the java run-time system?

1118


Can main() method in java can return any data?

1110


What is size_t?

931


What is a function argument in java?

943


Are arrays passed by reference in java?

876


What is a qualifier in a sentence?

925


How many bits is a float?

936


What is boolean in java?

910


How do you change an int to a string?

944


Explain about narrowing conversion in java?

955


Mention some interfaces implemented by linked list in java.

970