Core java - Advance Topics
Ctrlk
  • Welcome
  • Schedule
  • 1) Exception Handling
    • 1) Introduction to Exception Handling
    • 2) Categories of Exceptions
    • 3) Creating a method that throws an exception
    • 4) Creating Custom Exception Classes
    • 5)What happens when an exception is thrown?
      • 5.1) Creating try-catch-finally blocks
      • 5.2) Using a method that throws a checked exception
      • 5.3) Using a method that throws a runtime exception
      • 5.4) Using a method that throws an error
      • 5.5) Will a finally block execute even if the catch block defines a return statement?
      • 5.6) What happens if both a catch and a finally block define return statement?
      • 5.7) What happens if a finally block modifies the value returned from a catch block?
      • 5.8) Can a try block be followed only by a finally block?
      • 5.9) Does the order of the exceptions caught in the catch blocks matter?
      • 5.10) Can I rethrow an exception or the error I catch?
      • 5.11) Can I declare my methods to throw a checked exception instead of handling it?
      • 5.12) I can create nested loops, so can I create nested try-catch blocks too?
      • 5.13) Should I handle errors?
    • 6) Best Practices
    • 7) Cheat Sheet
    • 8) Problems
  • 2) Wrapper Classes and Enums
  • 3) Inner Classes
  • 4) Generics
  • 5) Equals and Hashcode
  • CompareTo method overview
  • Basic DS
  • 5) Collections Framework - Part 1
  • 6) Collections Framework - Part 2
  • Collections Framework - Part 3
  • 7) Reflection API
  • 8) Annotations
  • 9) Reading Input From Various Sources
  • 10) Multi-threading (Concurrency)
  • 11) Design Patterns
  • 12) Internal Working of JVM
  • 13) Garbage Collection
  • 14) More on Strings (Buffer and Builder)
  • 15) Cloning and Immutable Class
  • JAVA 8
  • Practice Tests
    • Test - Collections
    • OOPS
    • S-OOPS
Powered by GitBook
On this page

Was this helpful?

  1. 1) Exception Handling
  2. 5)What happens when an exception is thrown?

5.4) Using a method that throws an error

Previous5.3) Using a method that throws a runtime exceptionNext5.5) Will a finally block execute even if the catch block defines a return statement?

Last updated 6 years ago

Was this helpful?