How to find the length and capacity of a string buffer ?
Answers were Sorted based on User's Feedback
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 |
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 |
Explain when we should make an instance variable private.
What is double in java?
What is emant by API? is it related to java only or it is common for all OOPS supporting language?
What is bigger kb or mb?
What is the method to declare member of a class static?
Can a static class have a constructor java?
difference between arraylist and linkedlist otherthan performance
Can u overload main()method.Give with example.
6 Answers IBM, Schimatic Technologies,
What is the difference between the boolean & operator and the && operator in java programming?
How many types of gc are there in java?
What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?
How do you create a first line indent?