Java Data Types
Data
- Raw facts or figures are called Data
- A random collection of numeric figures or alphabet words
- A sorted or unsorted list of results generated after an experiment
There can be unlimited definitions of data, a simple example would be the results of a election poll wich are in raw form untill they are sorted and grouped in order to get the winner who has aquired maximum votes against his/her name
Data Types
We can classify data into different categories like it is an alphabetic data or it is numeric data. So the classification of data into types creates different data types. Now let's categories them according to computer usage:
- Numeric
- Non-Numeric
The reason we categories it in only two major categories is that in computer there are only two major categories of data types. Either it can be a numeric entry like 1,2,3 or either it can be any thing other than numeric enteries like "A","a","B","b"
In java language these data types are more classifieds into smaller datatypes
- Numeric
- Integer
- Long Integer
- Short Integer
- Float
- Double
- Non-Numeric
- String
- Character
|