Kotlin is a statically typed programming language for the JVM, Android and the browser designed for the industry. This presentation is an overview of Kotlin features and advantages over Java including code samples.
2. Intro
ā¢ JVM language
ā¢ Android and browser support.
ā¢ Developed by JetBrains
ā¢ Open Source
ā¢ First appeared in 2011
ā¢ Still in Beta (v1.0.0-beta-3595)
4. Modern Language for
Industry
ā¢ 100% interoperable with Java
ā¢ Concise - no boilerplate code
ā¢ Safe - convert runtime errors into compile time
ā¢ Tools support (command-line, plugins)
ā¢ Targets Java 6
6. Kotlin addresses Java
problems
ā¢ Null references are controlled by the type system.
ā¢ No raw types
ā¢ Arrays in Kotlin are invariant
ā¢ Kotlin has proper function types, as opposed to Javaās
SAM-conversions
ā¢ Kotlin does not have checked exceptions
ā¢ Use-site variance without wildcards (<? extends T>)
7. Kotlin vs Java
ā¢ No checked exceptions
ā¢ No primitive types that are not classes
ā¢ No static members
ā¢ No non-private ļ¬elds
ā¢ No wildcard-types