The kotlin is null-safety unlike java
In the java the codes in compile time they are null .So that's why may occurNullPointerException.
For example: when defined a variable. the variable may be null
To avoid being null variable.
We have to use @notnull
.and then variable is safe.
In the kotlin by default all of thing is not null.
When defining a variable, we can define the initial value in Nullable.
Before compiling because IDE Is smart, checks Nullable
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)