ICSE Class 10 Computer Applications Question 10 of 25

Values and Data Types — Question 10

Back to all questions
10
Question

Question 10

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.