Question: This code is occasionally throwing a null pointer exception (NPE). How can you change the code so it never throws as NPE?
- Replace `!!.` with `?.`
- Replace `!!.` with `?:.`
- Surround the line with a try/catch block.
- Replace `!!.` with `?.let`.
Answer: The correct answer of the above question is Option A:Replace `!!.` with `?.`