Programming - String Buffers

You Are Here :: Home > JAVA > String Buffers - General Questions

 
7.

StringBuffer sb=new StringBuffer("New Delhi"); String s=sb.substring(4); In the above,from where to where the substring is formed.                        


A. 6 characters B. 8 characters
C. Maximum D. null




8.

The method used for inserting the string is ?                        


A. StringBuffer insert(int I,int X) B. StringBuffer insert(int I,X)
C. StringBuffer insert(I,int X) D. StringBuffer insert(I,X)




9.

To add the String to StringBuffer class the method used is ______________________?                        


A. StringBuffer append(X); B. StringBuffer append();
C. StringBuffer Append() D. StringBuffer Append(X)




10.

The method used for deleting the string is ?                        


A. StringBuffer delete(int I,int j) B. StringBuffer delete(I,j)
C. StringBuffer delete(int I,j) D. StringBuffer delete(I,int j)




11.

Synchronizing mechanism is used for objects ________________                        


A. locking and unlocking B. locking
C. unlocking D. none




12.

which is faster execution one?                        


A. StringBuilder B. StringBuffer
C. both D. none




« prev

1

2

3

4

5

next »

 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on