Correct, if the compiler can infer that the variab...
# announcements
d
Correct, if the compiler can infer that the variable is not null and can never be null. (If you have mutable class variables this won’t work because the compiler is very conservative about other threads changing your code, but if you assign it to a local
val
it will fix the issue)