In this video we explore the null safety in a very detailed manner. Kotlin allows us to declare a data type as nullable. All you have do is put "?" when you provide the data type while declaring a variable. With that option on, we basically allow the variable to be assigned a null value. Other than that if you want to invoke any method on such variable, we have to just out ? in front if that variable. Kotlin provides other operators also associated with null safety - not null assertion, elvis operator. Explore all of that in detailed manner in this video.
Follow me on Twitter: / anilvdeshpande
Watch video Understanding Null Safety: Kotlin Fundamentals Tutorial - Part online without registration, duration hours minute second in high quality. This video was added by user Codetutor 24 October 2019, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,135 once and liked it 127 people.