// app.py
def app():
print("Hello, Python!")
app()
python app.py
// app.rs
fn main() {
println("Hello, Rust")
}
rustc app.rs ./app
// app.go
package main
import "fmt"
func main() {
fmt.Println("Hello Go!")
}
Run - go run app.go Build - go build app.go Launch - ./app
// App.scala
object App {
def main(args: Array[String]) = {
println("Hello, Scala!")
}
}
scalac App.scala scala App
// App.java
public class App {
public static void main(String[] args) {
System.out.println("Hello, Java!")
}
}
javac App.java java App
/**
* app.kt
*/
fun main(args: Array<String>) {
println("Hello, Kotlin!")
}
kotlinc app.kt -include-runtime -d app.jar java -jar app.jar
Hello, World, wikipedia