Skip to content

Instantly share code, notes, and snippets.

@MrRahulR
Created June 5, 2021 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrRahulR/3921ca961c41a10eb8aa5e4b47b12c27 to your computer and use it in GitHub Desktop.
Save MrRahulR/3921ca961c41a10eb8aa5e4b47b12c27 to your computer and use it in GitHub Desktop.
StringConcatenation2.java
public class StringConcatenation2 {
public static void main(String[] args) {
System.out.println("The answer is " + "42");
}
}
/*
Output :
The answer is 42
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment