- A \
- B /
- C |
- D >
- Share this MCQ
Answer:
A
Explanation:
Answer: A)
The correct escape sequence to represent a backslash character in Java is \\.
Explanation:
The \\ escape sequence is employed to include a literal backslash within a string. This is particularly useful in file paths or when dealing with regular expressions.
Description:
Understand the importance of the backslash escape sequence in Java and its role in handling special characters within strings.
Tags:
Java, Escape Sequences, Backslash, String Handling
Related Topic: