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 are abstract functions?

1030


What is map in java?

1013


Explain the differences between static and dynamic variables?

1154


Is set thread safe java?

930


What are adapter classes?

1052


What is an example of a constant variable?

1091


What happens if main method is not static?

1000


What is t type java?

1068


Is multiple inheritance supported by java?

999


Write a java program to count the number of words present in a string?

984


What is the difference between length and size in java?

992


Why convert an applet to an application?

1104


What is difference between hashset and hashmap in java?

1019


When do we need to use internal iteration? When do we need to use external iteration?

1127


What is the use of callablestatement?

1022