0 votes
in Kotlin by
Give a syntax for declaring a variable as volatile in Kotlin?

1 Answer

0 votes
by

Below syntax for declaring a variable as volatile in Kotlin

Volatile var x: Long? = null

...