If you want them to be accessible in Java in the “...
# getting-started
p
If you want them to be accessible in Java in the “usual” way, you can annotate with `@JvmField`:
Copy code
object Flag {
    @JvmField val ZERO = 0
    @JvmField val ONE = 1
}
then in Java,
int flag = Flag.ZERO;