Useful Links
Computer Science
Programming
By Language
Java Programming
1. Introduction to Java
2. Core Language Fundamentals
3. Object-Oriented Programming (OOP) in Java
4. Exception Handling
5. Java Collections Framework
6. Generics
7. Input/Output (I/O)
8. Concurrency and Multithreading
9. Modern Java Features (Java 8 and beyond)
10. Java Virtual Machine (JVM) Internals
11. Build Tools and Dependency Management
12. Testing in Java
13. Database Connectivity (JDBC)
Exception Handling
Understanding Exceptions
Definition of Exceptions
Errors vs. Exceptions
Types of Errors
Types of Exceptions
Checked Exceptions
Compile-Time Checking
Unchecked Exceptions
Runtime Exceptions
Exception Handling Mechanism
The try-catch Block
Multiple Catch Blocks
Exception Hierarchy in Catch
The finally Block
Resource Cleanup
The try-with-resources Statement
Automatic Resource Management
The Exception Hierarchy
The Throwable Class
The Exception Class
The RuntimeException Class
Common Exception Types
NullPointerException
ArrayIndexOutOfBoundsException
IllegalArgumentException
IOException
ClassNotFoundException
Throwing Exceptions
The throw Keyword
Throwing Built-in Exceptions
Throwing Custom Exceptions
The throws Clause
Declaring Exceptions in Method Signatures
Creating Custom Exceptions
Extending Exception Classes
Custom Exception Constructors
Best Practices for Custom Exceptions
Previous
3. Object-Oriented Programming (OOP) in Java
Go to top
Next
5. Java Collections Framework