How can I create a static class in Kotlin? (static CLASS not method or variable)

As long as you mean static nested classes, in kotlin a nested class is static by default. To make it a non-static inner class it needs to have a inner flag.

3 Likes