Split() :-
StringTokenizer :-
split() will split the given string on the basis of regular exp that you can take in string format. While StringTokenizer will split the given string character wise.
how can you say that split() is slower as compared to StringTokeniser ?
I think not checking for the space in case of StringTokenizer unless we tell to check for the space in the String, it reduces the time and even space.