0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ドットインストール勉強メモ01

Last updated at Posted at 2019-09-04

【Java8入門 #31 例外処理を扱ってみよう】に関する疑問メモ

疑問1. いきなり以下の継承から始まっているが、Exceptionクラス(?)がJavaにあらかじめ定義されているの?
 class MyException extends Exception
理解1. そうみたい。
 参考:https://qiita.com/k4h4shi/items/2c39edaeef1c92f6644a
    http://www.itsenka.com/contents/development/java/exception.html

疑問2. "throw"と"catch"ってなんだ?
理解2. tryとセットで使う、例外に関するもの。
 参考:https://www.sejuku.net/blog/26344

疑問3. ArithmeticExceptionとは?
理解3. 不正な算術処理(ゼロ除算など)
  これもあらかじめ定義されており(?)いきなり書いてOK。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?