What are string literals? How can they be created?
Answer:
String literals represent a sequence of characters. They can be created by enclosing a sequence of characters in double or single quotes.
Examples:
- “abc”
- ‘Hello, good morning’
Very Short Answer Type Questions (1 Mark each)
Very Short Answer Type Questions (1 Mark each)
Last updated at April 16, 2024 by Teachoo
Answer:
String literals represent a sequence of characters. They can be created by enclosing a sequence of characters in double or single quotes.
Examples: