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
How do listeners work?
What is difference between filereader and bufferedreader?
What are the types of inner classes (non-static nested class) used in java?
How to compare two strings in java program?
What are autoboxing and unboxing? When does it occur?
Can we pass null as argument in java?
What are different data structures in java?
Write a program to check string is palindrome without using loop?
What is widening and narrowing in java? Discuss with an example.
Is string pool garbage collected?
List some oops concepts in java?
How can you generate random numbers in java?
What is mutable object and immutable object?
How do you declare an empty string?
What is thread count in java?