Both const and @JvmField create constants. What can @JvmField do that const cannot?kotlinclass Styles { companion object { const val COLOR = 'Blue' @JvmField val SIZE = 'Really big' }}

🎲 Try a Random Question  |  Total Questions in Quiz: 83  |  🧠 Study this quiz with Flashcards
This question is part of a full practice quiz:
Kotlin Quiz — practice the complete quiz, review flashcards, or try a random question.

Kotlin MCQs For LinkedIn Skill Assessments.


Both const and @JvmField create constants. What can @JvmField do that const cannot?<br>kotlin<br>class Styles {<br> companion object {<br> const val COLOR = 'Blue'<br> @JvmField val SIZE = 'Really big'<br> }<br>}<br>