class ConcatStrings { public static void main (String args[]) { String x = "abc"; String y = "def"; String z = x + y; System.out.println ("x + y = " + z); } }