Java 异常处理

http://www.verejava.com/?id=16992965615177

package com.test;

public class Test
{
	public static void main(String[] args)
	{
		try
		{
			throw new ClassNotFoundException("hello");
		} catch (ClassNotFoundException e)
		{
			e.printStackTrace();
		}
		/*String a="a";
		int num=Integer.parseInt(a);
		try
		{
			Class.forName("com.ss");
		} catch (ClassNotFoundException e)
		{
			e.printStackTrace();
		}*/
		
	}
	
}


http://www.verejava.com/?id=16992965615177

posted @ 2018-06-22 09:17  verejava  阅读(76)  评论(0编辑  收藏  举报