In the Kotlin documentation they are mentioning some kind of module for instance in the documentation for the internal
modifier.
However I couldn't find any definition of the term module itself. So what is meant by module?
Yes, as Kotlin is 100% interoperable with Java, and both works on JVM. so one can easily use Java libraries with Kotlin.
Java and Kotlin both are object-oriented programming languages. But both are used for different purposes. Kotlin is used to develop android applications while Java is mainly used for developing enterprise applications.
In pure Kotlin projects, the recommended directory structure follows the package structure with the common root package omitted. For example, if all the code in the project is in the org. example. kotlin package and its subpackages, files with the org.
A module is a set of Kotlin sources compiled together:
- an IntelliJ IDEA module;
- a Maven project;
- a Gradle source set;
- a set of files compiled with one invocation of the Ant task.
This is in the same docs article about visibility modifiers. :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With