- Kotlin for Enterprise Applications using Java EE
- Raghavendra Rao K
- 100字
- 2021-06-10 18:49:25
No checked exceptions
In Java, exception handling is tedious and controlled by strict rules. Whenever we are dealing with checked exceptions, we can either handle exceptions in try…catch blocks, or they can be declared to be thrown. In this case, the code is repeated. Kotlin doesn't have any checked exceptions. The Exception class is extended from the java.lang.Exception class of the JDK library via typealias. We don't have to declare or handle the exceptions, thereby reducing a lot of boilerplate code.
Kotlin also provides other benefits, as explained in the following subsections.
推薦閱讀
- PHP動(dòng)態(tài)網(wǎng)站程序設(shè)計(jì)
- Implementing Modern DevOps
- Java 開(kāi)發(fā)從入門(mén)到精通(第2版)
- 簡(jiǎn)單高效LATEX
- Java加密與解密的藝術(shù)(第2版)
- Java持續(xù)交付
- 高級(jí)C/C++編譯技術(shù)(典藏版)
- INSTANT Mercurial SCM Essentials How-to
- ASP.NET 3.5程序設(shè)計(jì)與項(xiàng)目實(shí)踐
- PostgreSQL Replication(Second Edition)
- Create React App 2 Quick Start Guide
- PLC應(yīng)用技術(shù)(三菱FX2N系列)
- 微信小程序開(kāi)發(fā)與實(shí)戰(zhàn)(微課版)
- 基于SpringBoot實(shí)現(xiàn):Java分布式中間件開(kāi)發(fā)入門(mén)與實(shí)戰(zhàn)
- R Data Science Essentials