What does the nullsafe operator (?->) do?
- A Returns null instead of throwing when calling a method on null
- B Suppresses all errors
- C Converts null to an empty string
- D Declares a nullable property
Answer
Returns null instead of throwing when calling a method on null
The chain short-circuits to null as soon as any link is null, avoiding an error on method call on null.





