Which is the best way to use for String concatenation in
Java?

Answer Posted / manasa

'+'operator is the best way to concatenate bcz by using
this operator we can concatenate more than two strings.
This is not possible by using concat method

Is This Answer Correct ?    6 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create our own daemon thread?

550


What are the differences between graph and tree?

657


What are the important methods of java exception class?

582


What is meant by distributed application? Why are we using that in our application?

572


What is the point of java?

566






What is predicate in java?

575


What is java util hashmap?

532


Explain the hierarchy of java exception classes?

607


What are the uses of synchronized keyword?

564


What are pass by reference and pass by value?

535


What is static synchronization?

587


What are heap memory and stack memory and what are memory tables.

527


Does apple use java?

511


Difference between == and .equals() ?

583


State the difference between strings and arrays.

614