Answer Posted / Rahul Kumar Shivhare
In Groovy, strings can be expressed using single quotes (`'`) or double quotes (`"`). Single-quoted strings do not perform variable interpolation, while double-quoted strings do. To include a quote within a double-quoted string, you must escape it with a backslash (``). For example: `str1 = 'single-quoted'`, `str2 = "double-quoted"`.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category