Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a Kotlin module?

Tags:

kotlin

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?

like image 593
ubuntudroid Avatar asked Feb 08 '16 13:02

ubuntudroid


People also ask

Can Kotlin use Java libraries?

Yes, as Kotlin is 100% interoperable with Java, and both works on JVM. so one can easily use Java libraries with Kotlin.

Is Kotlin different from Java?

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.

How do you structure a Kotlin project?

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.


1 Answers

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. :)

like image 100
hotkey Avatar answered Oct 09 '22 16:10

hotkey