ExamVeda
Login
Home
This question belongs to Computer Science Kotlin Program
Kotlin Program
?

Both const and @JvmField create constants. What can const do that @JvmField cannot?
class Detail {
  companion object {
    const val COLOR = "Blue"
    @JvmField val SIZE = "Really Big"
  }
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.