Vidyalelo
Java Programming · Q23

Input Output

Programming · Java Programming · question 23

Q23

In Java, what is the purpose of the `File.separator` constant?

A.
It represents the parent directory
B.
It represents the current directory
C.
It represents the platform-specific file separator (e.g., `/` or ``)
Answer
D.
It represents the ASCII value of the separator character

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board