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 ?

Answers were Sorted based on User's Feedback



How to find the length and capacity of a string buffer ?..

Answer / 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

How to find the length and capacity of a string buffer ?..

Answer / 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

More Core Java Interview Questions

How to access arraylist elements in java?

0 Answers  


Are constructors methods?

0 Answers  


Is a copy constructor?

0 Answers  


What are java packages? What's the significance of packages?

0 Answers  


What are different access specifiers in java? Explain

0 Answers  


Is 64bit faster than 32 bit?

0 Answers  


What is variable argument in java?

0 Answers  


List java api that supports threads?

1 Answers  


What is purpose of applet programming?

0 Answers  


Which one will take more memory: an int or integer?

0 Answers  


What are null interfaces? Give some examples?

2 Answers  


How do you use, call, and access a static method in Java?

2 Answers  


Categories