6_02_030421217.java
来自「开始学JAVA老师布置的作业一学期的哦希望新手有用」· Java 代码 · 共 43 行
JAVA
43 行
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 + =
减小字号Ctrl + -
显示快捷键?