Why do we need data types?

Data types are format of literals or values that is stored in a variable. Data types are important in web applications or software or programs in many sense. Some of the important significance can be as follows:
  • If we know the data types, more analytical processing can be done. For example, we know the price of items are mostly in double format. It prevents us to think that, any string can be stored in it. We know that we can perform mathematical operations, statistical analysis with double value and come of with some reasoning.
  • Data types gives meaning to data. Integer data types tells that literals are in integer format, where as String data types indicates that it is composed of set of letters etc. 
  • Data types helps to distinguish different categories of values. It helps to distinguish between small numbers, numbers with decimal and values with letters etc.


Feel free to contact the admin for any suggestions and help.