Need of String conversions in Java | Core Java Tutorials

This Core Java Tutorials “Why String data conversions in java” post explains clearly why we need to convert String to primitive and Primitive to String data conversions using pre-defined methods of wrapper classes in java.


 

Why String data conversions?

  • In some of the situations, we need to take the input in the form of string.
  • To process the collected data, we need to convert the data into primitive types.
  • After processing the data, again we should re-convert the data into String to display.
  • Observe the following concept to understand, why conversions required….

 

Share this