Understand Exception Handling practically
Got exposure of exception handling. Learned different ways to handle exception:
- try-catch
- try-multiple catch
- nested try-catch
- throw keyword
- throws keyword
=> Build a custom exception "NegativeNumberException" which will resist the user to enter a negative number. => Used this user-defined exception for factorial calculator which will calculate the factorial of given number, if given number is positive