Zenus Group interview question

what are the different types of split methods in java

Interview Answer

Anonymous

9 Apr 2023

There are two syntaxes of split() in Java for two different method signatures. The first one takes the limit, and the other does not. Syntax of split() in Java with limit provided: string.