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

Explain the protected field modifier?

1077


Explain about serializable interface in java?

993


How many boolean functions are there?

955


What is the syntax and characteristics of a lambda expression? Explain

1039


What are the data types supported by java? What is autoboxing and unboxing?

1015


What is void keyword?

1097


What are the uses of synchronized keyword?

998


How does sublist works in java?

965


Write java program to reverse string without using api?

1041


What do you understand by looping in java? Explain the different types of loops.

1043


What do you mean by inner class in java? Explain

1061


What are variable arguments or varargs?

998


What exceptions occur during serialization?

1082


Should database connections be singleton?

954


What is numel matlab?

1330