Computer Applications
Answer
Integer Literal | Floating Literal |
---|---|
Integer literal represents whole number values like 2, -16, 18246, 24041973, etc. | Floating literal represents fractional numbers like 3.14159, -14.08, 42.0, 675.238, etc. |
Integer literals are assigned to variables of data type — byte, short, int, long, char | Floating literals are assigned to variables of data type — float, double |