Check out example codes for "how to add strings together". It will help you in understanding the concepts better.

Code Example 1

String firstName = "BarackObama";
String lastName = " Care";
//First way
System.out.println(firstName + lastName);
//Second way
String name = firstName + lastName;
System.out.println(name);
//Third way
System.out.println("BarackObama" + " Care");

Learn ReactJs, React Native from akashmittal.com