In Kotlin, null is not a value, but a type of its own called nullable. When you try to use a null value, you get a NullPointerException because the operation you are trying to perform cannot be completed on a null value. In Java, null is a special value that represents the absence of a value. A NullPointerException is one of the most common runtime exceptions. When an error occurs inside a method, it throws an exception.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |