Question: Given three String variables, a, b, and c, which of the following statements could you use to achieve the same thing as: c = a

Given three String variables, a, b, and c, which of the following statements could you use to achieve the same thing as:

c = a + b;

c = a.length() + b.length();

c = (int)a + (int)b;

c = a.concat(b);

c = b.concat(a);

c = a.plus(b);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!