What is difference between String.Substring and MID function?
Interview question and answer by:
Bhakti | Posted on: 12/23/2009 | Category:
VB.NET Interview questions | Views: 4052 |
Answer:
Said both performs the same type of operation on string. The basic difference lies, how they indice the string characters.
In case, if you have got string "TEST", the MID function will indice the characters as 1,2,3,4. But with String.substring they will be indiced as 0,1,2,3.
Asked In: Many Interviews
|
Alert Moderator
Found interesting? Add this to: