Explain what is string literals?


A string literals represents a string constant obtained from concatenating a sequence of characters.

There are two forms,

  • Raw string literals: The value of raw string literals are character sequence between back quotes ‘‘.  The value of a string literal is the string composed of the uninterrupted character between quotes.
  • Interpreted string literals: It is represented between double quotes ““. The text between the double quotes which may not contain newlines, forms the value of the literal.


© 2017