While Kotlin/Java interop works well out of the box, the experience can be modified to suit the needs of each individual project, thereby making Kotlin code feel more integrating with existing code and team conventions.
This chapter will detail how Kotlin code can be modified to provide a better interop experience with Java and help us understand how to work with objects to write better working statics.
In this chapter, we'll explore the following topics:
- Modifying the naming conventions of generated classes
- Leveraging default values and named parameters from Java
- Tips for working with companion objects
- How to write true JVM statics in Kotlin