- 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.
- C++ Builder 6.0下OpenGL編程技術(shù)
- Mastering AndEngine Game Development
- 精通Python設(shè)計模式(第2版)
- Python完全自學教程
- Learning Salesforce Einstein
- C語言課程設(shè)計
- WebRTC技術(shù)詳解:從0到1構(gòu)建多人視頻會議系統(tǒng)
- Mastering Android Development with Kotlin
- C語言程序設(shè)計上機指導與習題解答(第2版)
- Java程序設(shè)計案例教程
- Webpack實戰(zhàn):入門、進階與調(diào)優(yōu)(第2版)
- SQL Server 入門很輕松(微課超值版)
- MyBatis 3源碼深度解析
- Joomla!Search Engine Optimization
- 優(yōu)化驅(qū)動的設(shè)計方法