ICSE Class 9 Computer Applications Question 8 of 14

Values and Data Types — Question 8

Back to all questions
8
Question

Question 8

How would you print characters like \, ' and " in Java?

Answer

We can print characters like \, ' and " using escape sequences i.e. preceding it with a backslash (\) symbol.