Exams Attended

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques. What is difference between String and StringTokenizer?
Ans. A StringTokenizer is utility class used to break up string. Example:
StringTokenizer st = new StringTokenizer("Hello World");
while (st.hasMoreTokens()) {
	System.out.println(st.nextToken());
}
Output:
Hello
World
Is it helpful? Yes No

Most helpful rated by users:

©2022 WithoutBook