Which of the statements below will create the String r1 = "JAVA: How to Program"?

Consider the statements below:
String a = "JAVA: ";
String b = "How to ";
String c = "Program";

a. String r1 = c.concat(b.concat(a));
b. String r1 = a.concat(b.concat(c));
c. String r1 = b.concat(c.concat(a));
d. String r1 = c.concat(c.concat(b));


b. String r1 = a.concat(b.concat(c));

Computer Science & Information Technology

You might also like to view...

A requirements document includes a needs statement, source of data, summary of calculations, and any other special requirements for a worksheet, as shown in the accompanying figure.

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

Computer Science & Information Technology

What is a master item? Give some common examples of master items in use.

What will be an ideal response?

Computer Science & Information Technology

If the host on a network has the address 172.16.66.50/21, what is the subnet ID to which this host belongs?

A) 172.16.48.0 B) 172.16.56.0 C) 172.16.64.0 D) 172.16.72.0

Computer Science & Information Technology

A smurf attack is a type of malware attack

Indicate whether the statement is true or false.

Computer Science & Information Technology