Tag

Checked Exception

1 views collected around this technical thread.

NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
Aug 16, 2021 · Fundamentals

Java and Kotlin Exception Handling Best Practices

To improve Java‑Kotlin interoperability, the article recommends treating Kotlin exceptions as unchecked while enforcing Java‑style checked‑exception discipline through lint checks, using specific custom exceptions, avoiding broad catches or throws of Throwable, logging via a Monitor, and never returning from finally blocks to reduce crashes.

Checked ExceptionKotlinLint
0 likes · 9 min read
Java and Kotlin Exception Handling Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Aug 11, 2020 · Fundamentals

Understanding Java Exception Handling: Checked vs Unchecked Exceptions

This article explains Java exception handling by distinguishing checked and unchecked exceptions, demonstrates compilation outcomes for different exception types, and provides practical guidelines, code examples, and best practices for declaring, catching, and throwing exceptions in Java programs.

Checked ExceptionUnchecked Exceptionexception handling
0 likes · 9 min read
Understanding Java Exception Handling: Checked vs Unchecked Exceptions