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

Computer Science & Information Technology

You might also like to view...

Locking the entire kernel is usually not required, because ________.

a) processes on other processors are almost always executing in user mode. b) kernel data structures are mostly read-only. c) multiple processes can execute concurrently in kernel mode provided they do not modify the same data structures. d) all of the above

Computer Science & Information Technology

?When embedding anaudioelement in a web page, the _________ attribute informs a browser of the file type and speeds up the process of choosing a compatible audio source.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

To insert two spaces between each page name, the _________ entity must be used.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Which of the following correctly declares a dynamic array of strings?

a. p1 = new string(13); b. p1 = new string[]; c. p1 = new string[13]; d. p1 = new stringArray(13);

Computer Science & Information Technology