Question memo about [Introduction to Java 8 # 31 Let's handle exception handling]
Question 1. Suddenly it starts with the following inheritance, but is the Exception class (?) Predefined in Java? class MyException extends Exception Understanding 1. That's right. Reference: https://qiita.com/k4h4shi/items/2c39edaeef1c92f6644a http://www.itsenka.com/contents/development/java/exception.html
Question 2. What are "throw" and "catch"? Understanding 2. Exceptions used in combination with try. Reference: https://www.sejuku.net/blog/26344
Question 3. What is ArithmeticException? Understanding 3. Illegal arithmetic (division by zero, etc.) This is also predefined (?) You can write it suddenly.
Recommended Posts