Overloaded subString method of
String class.
1. public String subString(int pos);
2. public String subString(int startpos,int endpos);
Since we could get the results by using the 2nd overloaded subString() method, why sun
java provided us the 1st method?. Under what situation, do we intended to use the 1st one?