⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 6_02_030421217.java

📁 开始学JAVA老师布置的作业一学期的哦希望新手有用
💻 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 + -