Tonia Tkachuk Thank you for your response.

Agree. !! is a force to not null type and it will through an NPE if the variable is null whereas ?. is a null check and it will proceed only if the value is not null.

Thank you for pointing this out in the post. I have changed it.

You can read about ?. and !! in details on the below link.




Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Suneet Agrawal

Suneet Agrawal

More from Medium

Jeovana Zhang

Let the blessings be non-biased!!


GCSEs: Is it now time we scrap them and get on further education?