Question
What is difference between String and StringTokenizer?

Answers

A StringTokenizer is utility class used to break up string.
For one thing, StringTokenizer returns one substring at a time whereas the split method returns an array of substrings. Best to use String’s split(…) method. The StringTokenizer class is a legacy class. StringTokenizer can split strings based on single characters, split() takes regular expressions.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Types of Ready State
  • Q What is the molecular composition of hemoglobin? Does the functionality of hemoglobin as a protein depend upon its tertiary or upon its quaternary structure?
  • Q Which command shuts down an application server domain using a “forced” shutdown method?
  • Q If the amplitude of sound is doubled and the frequency reduced to one-fourth, what will the intensity?
  • Q What do you understand by design technology?
  • Q Explain about Locking Universe.
  • Q What is Advantages of using Immutable class
  • Q What is huffman coding?
  • Q How do i write my style sheet so that it gracefully cascades with user s personal sheet ?
  • Q Refer to the following Code. What is the value of sy-fdpos and sy-subrc after the search is executed?
  • Q What is eavesdropping with respect to hacking