```val caption : String? = null val caption : Str...
# android
l
Copy code
val caption : String? = null 
val caption : String? = ""
should I use option 1 or 2 to initialize a variable?
c
Better make it non-nullable and use second option
c
From an architecture perspective it depends on the context if
null
means something different then an empty string