Significance of StringTokenizer class

Significance of StringTokenizer class.

- This class is used to break the string into tokens.
- It is not distinguished between identifiers, numbers and quoted strings.
- It is a simple way to break the string.
- The 'java.util.StringTokenizer' package is used for 'StringTokenizer' class.

Following are the three constructors which are defined in the 'StringTokenizer' class:

1. StringTokenizer(String str) :
Creates 'StringTokenizer' with specified string.

2. StringTokenizer(String str, String delim) :
Creates 'StringTokenizer' with specified string and delimeter.

3. StringTokenizer(String str, String delim, boolean return_value) :
Creates 'StringTokenizer' with specified string, delimeter and return value.
What are the ways to create a thread?
What are the ways to create a thread? - A thread can be created extending from the Thread class......
Preemptive scheduling vs. time slicing
Preemptive scheduling vs. time slicing - Preemptive scheduling ensures the highest priority thread to execute until it enters the waiting or dead states..
What is a daemon threads?
What is a daemon threads? - Daemon threads run at a low priority. The GC is an example of such thread....
Post your comment