Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Learn Kotlin syntax
·
Module 2
Null Safety and Advanced Functions
1
Understanding Nullability: Nullable vs. Non-Nullable Types
Describe the concept of nullability and differentiate between nullable and non-nullable types.
2
Safe Calls for Nullable Types
Use the safe call operator (?.) to safely access properties or functions of a nullable type.
3
Elvis Operator for Nullable Expressions
Use the Elvis operator (?:) to provide a default value for a nullable expression.
Using `!!` and Avoiding NullPointerExceptions
Apply the not-null assertion operator (!!) and explain the risk of a NullPointerException.
5
Default and Named Arguments
Define a function with default arguments and named parameters.
6
Extension Functions: Adding Functionality to Existing Classes
Create an extension function to add new functionality to an existing class without modifying its source code.
Next module isn't ready yet,
Back to course
Previous module
Kotlin Fundamentals
Next module