Book Image

Learn Kotlin by Developing Android Apps [Video]

By : Brandan Jones
Book Image

Learn Kotlin by Developing Android Apps [Video]

By: Brandan Jones

Overview of this book

<p>Kotlin has been making waves ever since it was open sourced by JetBrains in 2011; it has been praised by developers across the world and is already being adopted by companies. This video provides a detailed introduction to Kotlin that shows you all its features and will enable you to write Kotlin code to production. We start with the basics: get you familiar with running Kotlin code, setting up, tools, and instructions that you can use to write basic programs. Next, we cover &nbsp;object oriented code: functions and properties – all while using Kotlin’s new features.</p> <h1>Style and Approach</h1> <p>Practical, project-based approach</p>
Table of Contents (7 chapters)
Chapter 4
Classes, Objects and Null Checks
Content Locked
Section 5
Null Checks
If you declare a variable, and you do not assign anything to it, the variable holds nothing, or as we call it in programming, null. What happens when you invoke a function on a variable holding a null reference? Kotlin handles this in a different way than Java. - What is null - How does Kotlin handle null - The Elvis operator