Skip to main content

Posts

Showing posts from March 6, 2018

Exception Handling and Inheritance in JAVA

1. Sum of digits of given numbers with exception handling in JAVA.(Default Throw & Defined Exception Handling) 2. Throw in JAVA | User Defined Exception Handling in JAVA | Our Throw Our Catch Exception Handling in JAVA.(The length of the string is not according to given one then throw the user defined LengthMatchException and handles it appropriately) 3. Simple Logic of lowest and second lowest number in JAVA.(Display lowest and second lowest number & handle the different exceptions possible to be thrown during execution) 4. OddException in JAVA.(5 even numbers from command line & If any of the number is odd then throw custom exception OddException in JAVA and Count Invalid Number) 5. The string is not equal to Another String then throw custom exception "no match exception" in JAVA. 6. Inheritance, Super Class , Sub Class in JAVA.(Employee class, which contains fields such as name and designation. And a subclass, which contains a field salary. Write a progra