Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
完全修飾名なしでインポートせずにIOExceptionを使用しようとすると、コンパイルエラーが発生します。しかし、RuntimeExceptionやExceptionなどで同じことをした場合は発生しません。何故ですか?
ありがとう
パッケージのクラスをjava.lang.インポートする必要はありません。これはRuntimeExceptionだけでなく、ObjectやStringなども含まれます。
java.lang.