Chapter 2

  1. Kotlin is a statically typed programming language that compiles to the same bytecode as Java.
  2. Kotlin supports all the features of object-oriented programming.
  3. Kotlin supports a lot of the features of functional programming.
  4. To define a read-only variable, we have to use the val keyword and the var keyword for mutability.
  5. To define a function, we have to use the fun keyword. Functions can be defined as first-class citizens, class members, or local.