Skip to main content

Literals

info
  • Literals are the actual values.
  • Literals will be assigned to variables or constants.
  • Literals are also used to perform any operations.
  • Constant values in programs are called as Literals.

Image Representation : TODO

Types of Literals

  1. Boolean Literals.
  2. Character Literals.
  3. String Literals.
  4. Integral Literals.
  5. Floating Literals.
  6. null Literal.

TODO: Examples and Explanations