Skip to content
Hello, World
step 1/5

Reading — step 1 of 5

Learn

~1 min readGetting Started

Kotlin runs on the JVM and interoperates with Java. The entry point is a top-level main function — no class boilerplate required (unlike Java).

fun main() {
    println("Hello, World!")
    println("Ship That Code")
}

println prints with a newline; print skips the newline. Statements don't need semicolons.

Kotlin is statically typed but heavily uses type inference, so most of the time you write code that LOOKS like a dynamic language and the compiler still catches type errors at build time. The standard library is rich — collections, sequences, scope functions (let/run/also/apply/with) — designed for expressive code.

Discussion

Ask a question, share an insight, or help someone who’s stuck.

Sign in to post a comment or reply.

Loading…