- 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.
推薦閱讀
- Data Visualization with D3 4.x Cookbook(Second Edition)
- TypeScript Blueprints
- Practical Internet of Things Security
- JIRA 7 Administration Cookbook(Second Edition)
- Data Analysis with Stata
- TypeScript實戰指南
- 數據結構與算法分析(C++語言版)
- Windows內核編程
- 軟件供應鏈安全:源代碼缺陷實例剖析
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- Learning Modular Java Programming
- 自學Python:編程基礎、科學計算及數據分析(第2版)
- 青少年學Python(第2冊)
- .NET 4.0面向對象編程漫談:應用篇
- 高效使用Greenplum:入門、進階與數據中臺