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 equal sign?

1044


What are different access specifiers in java?

961


What is flush buffer?

982


Is java hashset ordered?

1064


Write a program to print 15 random numbers using foreach of java 8?

898


List some oops concepts in java?

992


What do you mean by static variable?

1029


If an application has multiple classes in it, is it okay to have a main method in more than one class?

975


What are the important features of Java 8 release?

1038


What is an infinite loop in java? Explain with an example.

988


What is collection sort in java?

908


What is the difference between interface & abstract class?

995


What is the difference between member variables initialization and assignment in a constructor?

1193


How to check if a list is sorted in java?

984


What is void in java?

1027