Which is the best way to use for String concatenation in
Java?
Answer Posted / sureshreddy
class String
{
public static void main(String args[])
{
String s1="hai";
String s2="suresh";
String s3=s1.concat(s2);
System.out.println(s3);
}
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are internal and external variables?
Write a program based on Java script program.
Write a program to print fibonacci series
Explain list interface?
What is a map? What are the implementations of map?
What is methods and methodology?
Are constructors methods?
What is the difference between a window and a frame in java programming?
If a variable is declared as private, where may the variable be accessed?
What are the different ways of implementing thread? Which one is more advantageous?
What is bufferedreader in java?
Is integer a class?
What is meant by object oriented programming – oop?
Explain about abstract classes in java?
What exactly is a .class file?