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