What is difference between `@JvmField` and `const`...
# announcements
j
What is difference between
@JvmField
and
const
? Is property exposed to Java as a static if
const
is used? Android Studio recommended that to me, so just asking 🙂
e
@JvmField
is just asking the compiler not to generate getters and setters for kotlin properties, while
const
is compile time constant, which will be inlined by the compiler. They are two very different thing.