flâneur — a map of the web's best reading

A Guide to @Throws in Kotlin | Baeldung on Kotlin

baeldung.com · 886 words · saved by 1 readers

Classes and Objects provide the foundation for all Kotlin development. Learn how to use the Spring framework with Kotlin. The high level overview of all the articles on the site. About Baeldung. Last updated: March 19, 2024 Yes, we're now running the only sale of the year - our Black Friday launch. All Courses are 33% off until Monday, December 2nd: >> EXPLORE ACCESS NOW In this article, we’ll talk about the absence of checked exceptions and its implications in Kotlin. Along the way, we’re going to learn how the @Throws annotation facilitates calling Kotlin methods and functions from Java. We’ll also learn when we should and when we shouldn’t use this annotation in our projects. In Kotlin, there’s no such thing as checked exceptions, as opposed to Java. So, we don’t have to declare Java checked exceptions using a throws clause in Kotlin. As a matter of fact, Kotlin doesn’t even have a throws clause at all: In the above examples, we’re throwing a checked and an unchecke

Summer Sale 2026 – NPI EA (cat = Baeldung on Kotlin) Yes, we're now running our only Summer Sale. All Courses are 30% off until 20th July, 2026 : >> EXPLORE ACCESS NOW Baeldung Pro – Kotlin – NPI EA (cat = Baeldung on Kotlin) Learn through the super-clean Baeldung Pro experience: >> Membership and Baeldung Pro . No ads, dark-mode and 6 months free of IntelliJ Idea Ultimate to start with. 1. Overview In this article, we’ll talk about the absence of checked exceptions and its implications in Kotlin. Along the way, we’re going to learn how the @Throws annotation faci

Explore this link on the map →

related reading