public class ThrowTest
{
public static void main(String[] args)
{
try
{
throwChecked(-3);  //第一步:调用throwChecked(-3)方法;

catch (Exception e)
{
System.out.println(e.getMessage());
}
throwRuntime(-3);
System.out.println();
} public static void throwChecked(int a) throws Exception
{
if (a > 0)      //第二步,因为参数a <0 不符合要求;
{
throw new Exception("a的值大于0.不符合要求");
}
} public static void throwRuntime(int a)
{
if (a > 0)        //第二步,因为参数a <0 不符合要求;
{
throw new RuntimeException("a的值大于0.不符合要求");
}
}
}
你的方法写对了没?
仔细检查下哦;