Skip to content

Instantly share code, notes, and snippets.

@Ravikharatmal
Last active December 16, 2018 04:27
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 Ravikharatmal/f9786692bfa2fbd2735fdc9efba42012 to your computer and use it in GitHub Desktop.
Save Ravikharatmal/f9786692bfa2fbd2735fdc9efba42012 to your computer and use it in GitHub Desktop.
Java vs. Groovy, Scala, Kotlin - Syntax Comparison of JVM Languages
Syntax: Same as Java
Example:
class MyTestClass{
String name;
public MyTestClass(String name){
this.name = name;
}
public String myMethod(String a, int b){
String result = name + a + b;
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment