Concept Flow - Non-nullable types by default
Declare variable
Type is non-nullable by default
Assign non-null value
Yes→Works fine
No
Compile error: Null not allowed
Use nullable type with ?
Can assign null or non-null value
Kotlin variables are non-nullable by default, so you cannot assign null unless you explicitly allow it with a nullable type.