Which of the following statement prints smith\exam1\test.txt?

```
a. System.out.println("smith\exam1\test.txt");
b. System.out.println("smith\\exam1\\test.txt");
c. System.out.println("smith\"exam1\"test.txt");
d. System.out.println("smith"\exam1"\test.txt");
```

b. System.out.println("smith\\exam1\\test.txt");
To represent the \ character, use \\, because it is an escape character.

Computer Science & Information Technology

You might also like to view...

Due to the fact that many systems now integrate components from different organizations, it can be said that developers no longer distribute complete systems.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology