A

Admin • 802.91K Points
Coach

Q. What is the Kotlin equivalent of Java's static methods?

  • (A) final
  • (B) object
  • (C) companion object
  • (D) static class
  • Correct Answer - Option(C)
  • Views: 2
  • Filed under category Kotlin
  • Hashtags:

Explanation by: Admin
Static-like behavior is achieved using 'companion object' in Kotlin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.