How do you declare a variable that cannot hold a null value in Kotlin? - Study24x7
Social learning Network
5 followers study24x7 13 Nov 2024 10:36 AM study24x7 study24x7

How do you declare a variable that cannot hold a null value in Kotlin?

A

val variable: Type

B

var variable: Type?

C

var variable: Type!

D

val variable: Type?

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles