- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 120字
- 2021-07-02 21:50:12
Leveraging Null safety
NullPointerException is the most dreaded exception a developer can face when working with Java language. Sometimes it's quite difficult to trace and resolve it. Kotlin comes with a built-in Null safety system that is aimed at eliminating the null references from code:
The null references are famously known as The Billion Dollar Mistake (https://en.wikipedia.org/wiki/Tony_Hoare#Apologies_and_retractions) as their inventor later called it.
This Null safety system by Kotlin makes the whole Spring Framework API null safe (at least from the Kotlin side) and allows us to deal with null values at compile time rather than throwing NullPointerException at the runtime:
Kotlin's Null safety also means that the web apps you build with Spring Boot will be more robust.
- Flask Web全棧開發(fā)實戰(zhàn)
- Python快樂編程:人工智能深度學(xué)習(xí)基礎(chǔ)
- HTML5 Mobile Development Cookbook
- 程序員考試案例梳理、真題透解與強(qiáng)化訓(xùn)練
- Flux Architecture
- Mastering Rust
- VMware虛擬化技術(shù)
- Bootstrap 4 Cookbook
- 計算機(jī)應(yīng)用基礎(chǔ)項目化教程
- Learning Ionic
- Magento 2 Beginners Guide
- 嵌入式Linux C語言程序設(shè)計基礎(chǔ)教程
- Java高級程序設(shè)計
- C語言程序設(shè)計教程
- Spring Web Services 2 Cookbook