Escolar Documentos
Profissional Documentos
Cultura Documentos
Brief Outline:
Variables
Primitive Data Types
Operators and their precedence
Variables
Variables are nothing but reserved memory locations to store values, which means when you
declare/create a variable you reserve some space in memory.
All variables belong to different data types. by assigning different data types to variables, you can
store integers, decimals, or characters in these variables.
float IEEE 754 floating point 0.0 32bits ±1.4E-45 to ±3.4028235E+38 float f = 23.5;
double IEEE 754 floating point 0.0 64bits ±4.9E-324 to ±1.7976931348623157E+308 double d = 15556.98;
To declare any of these primitive data type to a variable, you just need to use the keyword for the
data type before the variable identifier as shown in the examples.
*/%+-