We pass the argument to inbuilt method then how its internally works?
ex : if we pass large no of character array to subString() method then how this method store this long size character aaray? in this case memory leakage problem occurred?
For example: If string is "abcd" the output should "abc", "abd", "acd", "bcd".