java是否允许父类的某个方法不抛异常,而子类的同名方法抛异常
classFather{publicfunc()/*没有throwsException*/;}classChildextendsFather{publicfunc()th...
class Father
{ public func()/*没有throws Exception*/;}
class Child extends Father
{public func() throws Exception;} 展开
{ public func()/*没有throws Exception*/;}
class Child extends Father
{public func() throws Exception;} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询