QUESTION 15 Consider the statements below: String a = "History of the "; String b = "New York Times, "; String c = "1851-2020"; Which of the statements below will create the String r1 = "History of the New York Times, 1851-2020"? a. String r1 = a.concat(b.concat(c)); b. String r1 = c.concat(b.concat(a)); c. String rl = b.concat(c.concat(a)); d. String r1 = c.concat(c.concat(b));

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter2: Basic Elements Of C++
Section: Chapter Questions
Problem 2MC
icon
Related questions
Question

JAVA

QUESTION 15
Consider the statements below:
"History of the ";
String a =
String b = "New York Times, ";
String c = "1851-2020";
Which of the statements below will create the String rl = "History of the New York Times, 1851-2020"?
a. String r1 = a.concat(b.concat(c));
%3D
b. String rl = c.concat(b.concat(a));
Oc. String rl = b.concat(c.concat(a));
d. String rl = c.concat(c.concat(b));
Transcribed Image Text:QUESTION 15 Consider the statements below: "History of the "; String a = String b = "New York Times, "; String c = "1851-2020"; Which of the statements below will create the String rl = "History of the New York Times, 1851-2020"? a. String r1 = a.concat(b.concat(c)); %3D b. String rl = c.concat(b.concat(a)); Oc. String rl = b.concat(c.concat(a)); d. String rl = c.concat(c.concat(b));
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to computer system
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning