try { } catch (ExceptionType1 e1) { } catch (ExceptionType2 e2) { } finally { } public class CustomException extends Exception { public CustomException(String message) { super(message); } } int value = 10; assert value == 20 : "Value should be 20";


上一篇:
下一篇:
切换中文