This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.lang.reflect.Constructor; | |
import java.lang.reflect.InvocationTargetException; | |
public class NewInstanceInConstructor { | |
public NewInstanceInConstructor() throws Throwable { | |
// チェック例外を送出する。 | |
throw new IOException(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
public class NewInstanceInClass { | |
public NewInstanceInClass() throws Throwable { | |
// チェック例外を送出する。 | |
throw new IOException(); | |
} | |
public static void main(String[] args) { |
NewerOlder