Tonia Tkachuk Thank you for your response.
!! 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
!! in details on the below link.