Part-2
Topics:
- Create your own exception class, use it in code, handle exceptions with if-else selection statement and ternary operators.
- Exception Handling Inheritance Rules – while overriding methods from parent class or parent interface in child classes.
- Handling multiple exceptions using Single Catch Block.
- Using ternary operator, how can we stop NullPointerException from coming in projects?
- try with resource – Usage and Comparison with basic try-catch block.
- AutoCloseable interface – close method with try with resource – replacement of finally block.
- assert keyword
