- Kotlin for Enterprise Applications using Java EE
- Raghavendra Rao K
- 212字
- 2021-06-10 18:49:17
Features of Kotlin
The key features of Kotlin are as follows:
- Interoperability with Java: The most important feature of Kotlin is its deep interoperability with Java. Kotlin compiles to JVM bytecode and runs on the JVM, using Java libraries and tools.
- Concise: Unlike Java, which is verbose, Kotlin reduces the amount of boilerplate code. This results in a leaner code syntax and improved readability.
- Safe: Kotlin improves code safety through the proper initialization of properties, null safety, and strong type inference.
- No runtime overhead: Kotlin imposes no runtime overhead. The standard Kotlin library is small. The Kotlin runtime exists only to support the language features. It has mostly focused on extensions to the Java standard library. Many of its internal functions are inline.
- Collections: In Kotlin, we have higher-order functions, lambda expressions, operator overloading, lazy evaluation, and lots of other useful functions for working with collections.
- Extension functions: Kotlin allows us to extend the functionality of existing classes without inheriting from them. Extensions do not modify classes; they extend them and are resolved statically.
- Open source: Kotlin is an open-source programming language. The Kotlin project is open-sourced under the Apache 2.0 license. It is on GitHub and is open for community contribution.
推薦閱讀
- Deploying Node.js
- Learning Spring 5.0
- 青少年美育趣味課堂:XMind思維導圖制作
- Oracle 12c中文版數據庫管理、應用與開發實踐教程 (清華電腦學堂)
- ASP.NET 3.5程序設計與項目實踐
- Solr Cookbook(Third Edition)
- ArcGIS for Desktop Cookbook
- Modern C++ Programming Cookbook
- Django 3.0應用開發詳解
- 大學計算機基礎
- SpringBoot從零開始學(視頻教學版)
- Distributed Computing in Java 9
- Unity 5.X從入門到精通
- Linux Networking Cookbook
- Instant SQL Server Analysis Services 2012 Cube Security