官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 嵊泗县| 盱眙县| 百色市| 金湖县| 德安县| 进贤县| 南康市| 鸡东县| 兴城市| 原阳县| 绥化市| 望奎县| 明星| 乌恰县| 宜宾县| 沂源县| 苏尼特左旗| 张掖市| 庆城县| 炎陵县| 象山县| 海兴县| 九寨沟县| 古蔺县| 北票市| 道孚县| 三门县| 灌阳县| 汾阳市| 淮阳县| 轮台县| 嘉善县| 黄大仙区| 汝城县| 禄丰县| 正宁县| 自治县| 清水河县| 大关县| 应城市| 玛曲县|