What is the equivalent of Java static methods in Kotlin?

In Kotlin, you can use the companion object to define static methods and properties.

Here is an example of how to define a static method in Kotlin:

class MyClass {
    companion object {
        fun staticMethod() {
            // static method implementation
        }
    }
}

You can call the static method using the name of the class:

MyClass.staticMethod()

Here is an example of how to define a static property in Kotlin:

class MyClass {
    companion object {
        val staticProperty = "static property value"
    }
}

You can access the static property using the name of the class:

val value = MyClass.staticProperty

In Kotlin, the companion object is a singleton, which means that there is only one instance of the object and all its methods and properties are static.

I hope this helps. Let me know if you have any questions.