how we can write the string concatenation program in java.

Answer Posted / sreekanth

public class StringConcat{
public static void main(String args[]){
String str1="abc";
String str2="def";
String str3=str1.concat(str2);
System.out.println(str3);
}}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is api in java?

543


What is string :: npos?

583


What type of variable is error flag?

595


What do you understand by casting in java language?

582


Is 0 true or false in java?

520






What does java edition mean?

541


What is the use of isempty in java?

543


What is the relationship between clipping and repainting under awt?

619


What are different types of states exist for a thread?

553


What is a classloader in java?

538


Difference between static and dynamic class loading.

592


Tell me are there implementations for sorting and searching in the java libarary?

604


Explain the difference between treeset and treemap in java?

536


Can we define private and protected modifiers for the members in interfaces?

546


Is static variable stored in heap?

511