Computer Science, asked by kabirrajjj, 9 months ago

How many types of literals are specified in java?​

Answers

Answered by sunandapatra78p41ov5
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 raj1990600
0
Literals are basically constants in program
Integer literals
Floating point literals
Character literal
String literal
Similar questions