📄 6_02_030421217.java
字号:
class First
{
static void F() throws NoSuchMethodException
{
try{
throw new NoSuchMethodException();
}
catch(NoSuchMethodException e)
{
System.out.println(e.toString());
}
}
}
class Second extends First
{
static void S() throws NoSuchMethodException
{
F();
}
}
class Third extends Second
{
static void T() throws NoSuchMethodException
{
S();
}
}
public class Exer6_2 extends Third
{
private Exer6_2(){}
public static void main(String[] args)
{
Exer6_2 NoSuchMethod=new Exer6_2();
try{
NoSuchMethod.T();
}
catch(Exception e){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -