How many types of literals are specified in java?
Answers
Answered by
3
Literals are source code representation of a fixed value or the sequence of characters which represents the constant value that is to be stored in a variable. There are FIVE TYPES of literals in Java. They are :-
- integer literals,
- floating-point literals,
- character literals,
- string literals
- boolean literals.
MARK ME AS BRAINLIEST ANSWER !!
Answered by
0
Literals are basically constants in program
Integer literals
Floating point literals
Character literal
String literal
Integer literals
Floating point literals
Character literal
String literal
Similar questions