Programming - String Buffers - Discussion

You Are Here :: Home > JAVA > String Buffers - Discussion

 



Q.

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

Answer: Option A
Explaination:

 


It occupies only 6 characters




Discussion

Your Comments Goes here...
NameDiscussion