Skip to content

Opening book details…

About this document

Java String Concatenation Example by saraswathimaheswari is a document available to read on EtoBox.

This Java program defines a main method that declares an integer variable x with a value of 10, a String variable y with a value of "janapath", and concatenates x and y into String variable z. It then prints the value of z to output 10janapath, demonstrating string concatenation in Java.

Author
saraswathimaheswari
Language
EN