Difference Between hasMoreElements() and hasMoreTokens() in StringTokenizer

On

Difference between hasMoreElements() and hasMoreTokens() in StringTokenizer java There is no difference between hasMoreElements() and hasMoreTokens() methods of StringTokenizer in Java. StringTokenizer implements Enumeration interface and Enumeration interface has the below two methods public interface Enumeration { boolean hasMoreElements(); E nextElement(); }…