Powered by Blogger.
Showing posts with label String objects. Show all posts
Showing posts with label String objects. Show all posts

Java Solution | Write a Java Program Using String Concatenation with +

String Concatenation with +: 

The + operator performs a concatenation of String objects, producing a new String.

 public class StringConTest{
 public static void main(String[]args){
 String salutation=”Mr.”;
 String name=”Dewan”+”Md.”+”Saju”;
 String title=salutation+name;
 System.out.println(title);
  }
 }