Both const and @JvmField create constants. What can const do that @JvmField cannot?javaclass Detail { 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 const do that @JvmField cannot?<br>java<br>class Detail {<br> companion object {<br> const val COLOR = 'Blue'<br> @JvmField val SIZE = 'Really Big'<br> }<br>}<br>