Give the output of the following code:
System.out.println("Good".concat("Day"));
GoodDay
Reason — concat() method is used to join two strings. Thus, "Good" and "Day" are joined together and printed as "GoodDay".