Summary

In this chapter, we have learned about exceptions and exception handling. We have also looked at examples that show how to create our own exceptions and explored why we need it. The Checked exception section showed us the difference between exceptions in Java and Kotlin. In addition to this, we have learned the difference between statements and expressions and looked at an example that shows us how to use the try { ... } catch { ... } block as an expression.

In the next chapter, we will learn how to test in object-oriented programming with Kotlin.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.12.157