Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java Exception Handling For Certification & Interviews
Rating: 4.3 out of 5(644 ratings)
31,349 students

Java Exception Handling For Certification & Interviews

Clear Java Certification : OCJA (1Z0-808) In Simple Way
Created byDURGASOFT DURGA
Last updated 8/2019
English

What you'll learn

  • Student can get much perfection on Java Exception Handling Concept

Course content

1 section37 lectures10h 10m total length
  • Java Exception Handling: Agenda8:59

    Explore Java exception handling from fundamentals to practice, covering throw vs throws, final vs finally vs finalize, multiple catch blocks, default handling, checked vs unchecked exceptions, and stack frames.

  • Introduction to Exception Handling25:07

    Define an exception as an unwanted, unexpected event that disrupts the normal flow of a program and requires exception handling for graceful termination.

  • Runtime Stack Mechanism11:22

    Explore the Java runtime stack mechanism, where each thread has its own stack and frames grow with method calls like main, and the JVM pops frames as methods complete.

  • Default Exception Handling Part-118:41

    Master default exception handling in Java as unhandled exceptions create an object, propagate through the call stack, and trigger the JVM to print a stack trace and terminate.

  • Default Exception Handling Part-213:54

    Explore default exception handling in Java, showing how exceptions move through the main thread and stack, print information to the console, and cause abnormal termination.

  • Exception Heirarchy and Difference between Exception and Error15:55

    Explore the Java exception hierarchy and the difference between exception and error, distinguishing recoverable from non recoverable cases with examples like index out of bounds and out of memory.

  • Difference between Checked and Unchekced Exceptions Part-125:31

    Describe the difference between checked (compile-time) and unchecked (runtime) exceptions, with examples like file not found and interrupted exceptions, and explain how throws and catch govern handling in Java.

  • Difference between Checked and Unchekced Exceptions Part-216:14

    Explain the difference between checked and unchecked exceptions in Java, showing how the compiler enforces handling for checked exceptions while unchecked ones may occur at runtime.

  • Difference between Fully-Checked and Partially-Checked Exceptions12:02

    Explain the difference between fully checked and partially checked exceptions in Java, and how they relate to unchecked and runtime exceptions, including one-time and chained checks.

  • Customized Exception Handling By using try-catch16:29

    Explore customized exception handling in Java using try-catch and finally blocks, with practical examples and clarifications on graceful termination versus non-graceful termination.

  • Control-Flow inside try-catch15:18

    Understand how control flow works inside try-catch: how exceptions match a catch block, what runs when an exception is thrown or not, and the role of finally.

  • Methods to print exception information11:36

    Explore how to print exception information in java using three methods: printStackTrace, toString, and getMessage, and compare their console outputs for exception name, description, and message.

  • Exception Handling:try with multiple catch blocks20:31

    Explore exception handling with try with multiple catch blocks, learn how different exceptions are caught in order from top to bottom, and why specific catch blocks matter for proper handling.

  • Exception Handling:Purpose and speciality of finally block19:54

    Understand the finally block's role in enforcing cleanup code. Learn how it closes resources like database connections regardless of exceptions.

  • Exception Handling:finally block vs return statement9:09

    Examine how the finally block executes and dominates the written statement, often overriding return values and shaping both normal and exceptional flow in Java exception handling.

  • Exception Handling:finally block vs System.exit11:57

    Explore how the finally block behaves in Java exception handling, including when it executes and how System.exit can terminate the JVM, affecting normal versus abnormal termination.

  • Control-Flow in try-catch-finally10:06

    Explore the control flow of try, catch, and finally in Java, understanding how exceptions affect which blocks run and when finally executes, even when catches do not match.

  • Nested try-catch-finally15:04

    Explore nested try-catch-finally structures to master control flow, showing how inner and outer catches and finally blocks interact, and why keeping risky code out of catch blocks matters.

  • Control-Flow in nested try-catch-finally32:24

    Explore the 14 cases of nested try-catch-finally in Java, showing how catch blocks match exceptions and how finally executes for normal and abnormal termination.

  • Various Possible combinations of try-catch-finally24:21

    Explore the various combinations of try, catch, and finally in Java, including multiple catch blocks, the interaction of finally with catch, and rules for valid and invalid sequences.

  • Need of throw keyword18:23

    Explore the need for the throw keyword in Java, showing how to explicitly raise exceptions and differentiate custom exceptions from built-in ones, with handling via try-catch-finally and the JVM.

  • Important cases related to throw keyword20:25

    Explore how the throw keyword controls exception flow in Java, covering static automatic exceptions, null values, null pointer exceptions, and compile-time versus runtime behavior.

  • Need and Usage of throws keyword23:34

    Explore the need and usage of the throws keyword to delegate exception handling to callers, distinguishing checked and unchecked exceptions, and comparing throws with try-catch for compiler compliance.

  • throws keyword across multiple methods16:47

    Explore the throws keyword across multiple methods, declaring and delegating interrupted exceptions, and understand how catch versus declare and delegating to main or the JVM affect compilation and runtime behavior.

  • Important cases related to throws keyword25:27

    Explore the throws keyword and its impact on Java exception handling, covering checked vs unchecked exceptions, declaration requirements, and when to use throw, throws, and catch blocks.

  • Exception Handling Keywords summary and various possible compile time errors11:51

    Explore Java exception handling keywords, including throw, throws, catch, and finally, and learn to declare or throw checked and unchecked exceptions, use multiple catch blocks, and create custom exceptions.

  • Difference between final, finally and finalize()14:38

    Compare final, finally, and finalize in Java, locating final classes, methods, and variables, understand the finally block for guaranteed cleanup, and examine finalize in relation to garbage collection.

  • User Defined or Customized Exception9:40

    Define and use customized java exceptions to meet programming requirements, distinguishing user defined exceptions from built-in ones, with practical examples for certification and interviews.

  • How to define and use User Defined or Customized Exception24:55

    Define and use user defined or customized exceptions by extending runtime exception for unchecked vs checked exceptions, with constructors to pass messages, and demonstrate throwing, catching, and default handling.

  • Top - 10 Exceptions Part-117:59

    Explore the top Java exceptions in interview prep, including index out of bounds, null pointer, and stack overflow, with emphasis on unchecked and checked exceptions and practical handling.

  • Top - 10 Exceptions Part-219:10

    Explore top 10 exceptions part-2 by examining class cast exceptions during type casting, unchecked vs. checked errors, and initialization issues in static variables and blocks, including division by zero.

  • Top - 10 Exceptions Part-320:53

    Explore top Java exceptions, including IllegalArgumentException, IllegalStateException, and NumberFormatException, with examples on thread priority, iterator usage, and the distinction between checked and unchecked exceptions.

  • Top - 10 Exceptions Summary4:39

    Cover the top ten exceptions, including index out of bounds, null pointer, stack overflow, and class cast, illegal argument, number format, and illegal state exceptions with practical examples.

  • Try with Resources12:32

    Java 1.7 introduces try-with-resources and multi-catch, automatically closing resources and simplifying exception handling. Old finally blocks increased code complexity and required explicit resource closing.

  • Important Conclusions about Try with Resources17:29

    learn important conclusions about try with resources: you can take any number of resources separated by semicolons, the resources are implicitly final inside the block, and finally and catch discussed.

  • Multi Catch Block12:47

    Learn how to use multi catch blocks in Java 1.7 to handle multiple exceptions with a single catch, improving readability while covering class cast, null pointer, and arithmetic exceptions.

  • Exception Propagation and Re throwing an Exception4:25

    Learn how exception propagation works and how rethrowing an exception transfers the error to callers, including the role of catch blocks and the meaning of throwing an exception.

Requirements

  • It's desirable to have some minimum basic knowledge of Java

Description

The student can get complete knowledge on the following topics:

1. Introduction to Exception Handling

2. Runtime Stack Mechanism

3. Default Exception Handling

4. Exception Heirarchy and Difference between Exception and Error

5. Difference between Checked and Unchekced Exceptions

6. Difference between Fully-Checked and Partially-Checked Exceptions

7. Customized Exception Handling By using try-catch

8. Control-Flow inside try-catch

9. Methods to print exception information

10. Exception Handling:try with multiple catch blocks

11. Exception Handling:Purpose and speciality of finally block

12. Exception Handling:finally block vs return statement

13. Exception Handling:finally block vs System.exit()

14. Control-Flow in try-catch-finally

15. Nested try-catch-finally

16. Control-Flow in nested try-catch-finally

17. Various Possible combinations of try-catch-finally

18. Need of throw keyword

19. Important cases related to throw keyword

20. Need and Usage of throws keyword

21. throws keyword across multiple methods

22. Important cases related to throws keyword

23. Exception Handling Keywords summary and various possible compile time errors

24. Difference between final, finally and finalize()

25. User Defined or Customized Exception

26. How to define and use User Defined or Customized Exception

27. Top - 10 Exceptions

28. Try with Resources

29. Important Conclusions about Try with Resources

30. Multi Catch Block

31. Exception Propagation and Re throwing an Exception

32. Exception Handling 9 Practice Questions & Explanation


Who this course is for:

  • Anyone looking to clear Java Certification
  • Anyone looking to clear Java Interviews
  • Anyone to get perfection on day to day coding requirements on Exception Handling Concepts