how we can write the string concatenation program in java.

Answer Posted / kandavel

class conc
{
public static void main(String args[])
{
String a="kanda",b="Vel",c;
c=a+b;
System.out.println(" Concat String :"+c);
}}

//This program must save the file name is conc.java

Is This Answer Correct ?    17 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between Java1.4 and Java1.5

1834


What a static class can contains?

703


How do you include a string in java?

530


Can an integer be a string?

515


What are facelets templates?

607






Is java a prime method?

555


What is the simpletimezone class in java programming?

541


Can java object be locked down for exclusive use by a given thread?

589


What is logical variable?

520


How do you create a sop?

537


Given a singly linked list, determine whether it contains a loop or not without using temporary space?

588


What is boolean logic?

567


What do you mean by scope of variable?

490


What do you mean by default constructor in java?

582


How you can force the garbage collection?

542