Difference between revisions of "Constants - Variables - Data Types"
(Created page with "There are 9 types of data types. These include Boolean, string, integer, double, decimal, character, byte, float and long. Boolean is a binary value is true or false. String...") |
|||
Line 1: | Line 1: | ||
There are 9 types of data types. These include Boolean, string, integer, double, decimal, character, byte, float and long. | There are 9 types of data types. These include Boolean, string, integer, double, decimal, character, byte, float and long. | ||
− | Boolean is a binary value is true or false. | + | |
− | String is used for storing characters in word form. | + | *Boolean is a binary value is true or false. |
+ | *String is used for storing characters in word form. | ||
Integer is used to store whole numbers. | Integer is used to store whole numbers. | ||
Double is used to store numbers where there are numbers before and after the decimal point. | Double is used to store numbers where there are numbers before and after the decimal point. |
Revision as of 10:29, 15 December 2016
There are 9 types of data types. These include Boolean, string, integer, double, decimal, character, byte, float and long.
- Boolean is a binary value is true or false.
- String is used for storing characters in word form.
Integer is used to store whole numbers. Double is used to store numbers where there are numbers before and after the decimal point. decimal is used for numbers only after the decimal point. Character is used to store single letters. Byte is used to store a byte( eight 1's or 0's).