What is displayed by the following code?

```
System.out.print("A,B;C".replaceAll(",;", "#") + " ");
System.out.println("A,B;C".replaceAll("[,;]", "#"));
```
a. A B C A#B#C
b. A#B#C A#B#C
c. A,B;C A#B#C
d. A B C A B C


c. A,B;C A#B#C

Computer Science & Information Technology

You might also like to view...

Which of the following is the main goal of the object-oriented approach?

A) maintaining systems B) minimizing the impact of change C) re usability D) functional control

Computer Science & Information Technology

The R-squared value is calculated by squaring the correlation coefficient, labeled as Squared R in the output

Indicate whether the statement is true or false

Computer Science & Information Technology

A user has requested a device that could be used for web-conferences while away from work. The device will mainly be used for emailing, document reviewing, and phone calls. Which of the following mobile devices would a technician MOST likely recommend?

A. Tablet B. Smart camera C. Phablet D. Web camera

Computer Science & Information Technology

Which statement is false?

a) Arrays are normally stored contiguously in memory. b) Dynamic memory allocation can sometimes use memory more efficiently than using fixed-size data structures. c) Dynamic memory allocation incurs execution-time overhead. d) Linked lists are normally stored contiguously in memory.

Computer Science & Information Technology