RTD Training & Development

Kotlin Programming for Java Programmers

Call us on +44 (0)1225 66 72 72 or send us a message

Kotlin Programming for Java Programmers

4 days hands-on £1,940+VAT

This course can be delivered over the web

Next scheduled date:
Tuesday June 11th, 2024 Enrol Now!

Can't wait that long? It may be possible to deliver this course at an earlier date. Contact us if you're interested
Covers the essential features of programming in Kotlin and its core libraries, including the latest features and its interface to Java libraries and the JVM.

Outline

Differences to Java

  • Syntax differences
  • Type differences
  • Read-only and read-write variables
  • External functions and data
  • Type inference
  • Operator differences
  • Coding conventions
  • File and package conventions
  • Kotlin-generated bytecode

Fundamental Elements

  • Kotlin and Java types
  • Null safety
  • Smart casting
  • Conditional expressions
  • Ranges
  • Loops
  • String templates

Functions

  • Writing functions
  • Function arguments
  • Anonymous functions
  • Lambda functions
  • Function references
  • Inlining
  • Scope functions

Collections

  • Lists
  • Sets
  • Maps
  • Mutable collections
  • Destructuring
  • Collection conversion

Classes

  • Defining classes
  • Visibility
  • Class functions
  • Class properties
  • Primary and secondary constructors
  • Data classes
  • Enumerations

Object-Oriented Programming

  • Inheritance
  • Abstract classes
  • Interfaces
  • Nested and inner classes
  • Operator overloading
  • Objects and companion objects
  • Extension functions and properties

Generics

  • Generic types
  • Generic functions
  • Generic constraints
  • Argument variance

Coroutines

  • Concurrency
  • Coroutine scopes
  • Channels
  • Shared mutable data
  • Coroutines and threads

Overview

Kotlin is a modern language that can be used to write code for the JVM but can also used to write JavaScript applications and native applications for Linux, macOS and Windows. Kotlin has many similarities with Java but is much less verbose and avoids many of the shortcomings of Java that have become evident over the years. Google has named Kotlin as its preferred language for Android programming.

This course covers all the major features of the latest release of Kotlin and its interoperability with Java.

Objectives

On successful completion of this course, participants will be able to:

  • Write and compile Kotlin programs
  • Run Kotlin programs on the JVM
  • Understand the differences between Java and Kotlin
  • Utilise the artifacts in the Kotlin library
  • Use the object-oriented features of Kotlin
  • Use the functional features of Kotlin
  • Use Kotlin with Java code

Audience

This course is aimed primarily at programmers who are interested in developing applications in Kotlin or using Kotlin with Java code. Engineers, analysts and managers will also find it useful.

Prerequisites

Participants are expected to have a working knowledge of Java up to the level covered in the Java Programming course. Those without a prior knowledge of Java would be better served by our Kotlin Programming course.

share buttons
share on twitter
share on linkedin
share on facebook
share by email