This method converts this string into character array. It returns a newly created character array, its length is similar to this string and its contents are initialized with the characters of this string.
When will substring(int startIndex, int endIndex) method throws "StringIndexOutOfBoundsException" in java?
Which exception does substring(int startIndex, int endIndex) method of string throws in java?
What is the return type of startsWith(String prefix) method of java.lang.String class in java?
What the function of startsWith(String prefix) method of String class in java?
When will split(String regex) method throws "PatternSyntaxException" in java?