Programming - String Buffers

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

 
19.

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


A. only 4th position string B. from 4th to till end
C. from first to last D. none




20.

String substring(int I,int j).this extract the sub string from?                        


A. int I to j B. from 0 to int j
C. from I to j-1 D. from i-1 to j




21.

The String which gives same string even after reversing is _____________                        


A. palindrome B. polinomial
C. both D. none




22.

Is StringBuilder class can be changed or not mutable?                        


A. yes B. no
C. Cant say D. none




23.

To lock the object the method is _________________                        


A. synchronizing B. StringBuilder
C. serializing D. none




24.

Is StringBuilder can be synchronized or not?                        


A. yes B. no
C. Cant say D. none




« prev

1

2

3

4

5

next »

 
 



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