- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to concatenate two strings using Java?
You can concatenate two Strings using the concat() method.
Example
public class ConcatinatedStrings { public static void main(String args[]) { String str1 = new String("Tutorials"); String str2 = new String( "Point"); String res = str1.concat(str2); System.out.println(res); } }
Output
TutorialsPoint
- Related Articles
- How can we concatenate two strings using jQuery?
- How to concatenate two strings in C#?
- How to concatenate two strings in Python?
- How to concatenate two strings in Golang?
- C++ Program to Concatenate Two Strings
- Concatenate Multiple Strings in Java.
- Different ways to concatenate Strings in Java
- Concatenate 2 strings in ABAP without using CONCATENATE function
- How to concatenate two arrays in java?
- The Optimum Method to Concatenate Strings in Java.
- How to concatenate strings in R?
- How to concatenate several strings in JavaScript?
- How to correctly concatenate strings in Kotlin?
- In how many ways we can concatenate Strings in Java?
- Java Program to Concatenate Two Arrays

Advertisements