Browse topics
Kotlin Intermediate
Packages & Imports
Organize code with packages, imports and visibility modifiers.
kotlin packagesPackage Declaration in KotlinA package groups related classes and functions. A Kotlin example with source code and sample output.kotlin packagesImport Statements in Kotlinimport brings classes and functions from other packages into scope. A Kotlin example with source code and sample output.kotlin packagesDefault Imports in KotlinKotlin automatically imports commonly used packages. A Kotlin example with source code and sample output.kotlin packagesNaming Packages in KotlinPackage names should be lowercase without underscores. A Kotlin example with source code and sample output.kotlin packagesAccess Modifiers Overview in Kotlinpublic is the default visibility in Kotlin. A Kotlin example with source code and sample output.
Related topics
Null Safety Nullable types, safe casts, let, lateinit and null handling in Kotlin. Kotlin Strings String basics, templates, comparison, substring and raw strings. Kotlin Arrays Declare, initialize, access and iterate arrays in Kotlin. Collections Intro Lists, sets, maps and common collection operations. Exception Handling try-catch, finally, throw, custom exceptions and try expressions. Type Features Type aliases, destructuring declarations and related Kotlin type syntax.