📄 lx8.java
字号:
public class Lx8
{
static void throwOne() throws IllegalAccessException
{
System.out.println("Inside thowOne.");
throw new IllegalAccessException("demo");
}
public static void main(String args[]) throws IllegalAccessException
{
//System.out.println("I do not throw exception!");
//throwOne();
try
{
throwOne();
}
catch(IllegalAccessException e)
{
System.out.println("Caught:"+e);
}
finally{System.out.println("I do not throw exception!");}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -