- Android Development with Kotlin
- Marcin Moskala Igor Wojda
- 116字
- 2021-07-02 18:48:33
Laying a Foundation
This chapter is largely devoted to the fundamental building blocks that are core elements of the Kotlin programming language. Each one may seem insignificant by itself, but combined together, they create really powerful language constructs. We will discuss the Kotlin type system that introduces strict null safety and smart casts. Also, we will see a few new operators in the JVM world, and many improvements compared to Java. We will also present new ways to handle application flows and deal with equality in a unified way.
In this chapter, we will cover the following topics:
- Variables, values, and constants
- Type inference
- Strict null safety
- Smart casts
- Kotlin data types
- Control structures
- Exceptions handling
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- 手機安全和可信應用開發指南:TrustZone與OP-TEE技術詳解
- Bootstrap Site Blueprints Volume II
- Podman實戰
- Unreal Engine 4 Shaders and Effects Cookbook
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- 時空數據建模及其應用
- JSP程序設計與案例實戰(慕課版)
- Visual Basic程序設計全程指南
- UML基礎與Rose建模實用教程(第三版)
- Learning D3.js 5 Mapping(Second Edition)
- C語言程序設計實驗指導
- Mastering JavaScript Promises
- Mastering Machine Learning with scikit-learn
- 深入理解MySQL主從原理