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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do listeners work?

751


What is difference between filereader and bufferedreader?

723


What are the types of inner classes (non-static nested class) used in java?

807


How to compare two strings in java program?

840


What are autoboxing and unboxing? When does it occur?

708


Can we pass null as argument in java?

700


What are different data structures in java?

726


Write a program to check string is palindrome without using loop?

786


What is widening and narrowing in java? Discuss with an example.

771


Is string pool garbage collected?

769


List some oops concepts in java?

794


How can you generate random numbers in java?

790


What is mutable object and immutable object?

883


How do you declare an empty string?

853


What is thread count in java?

733