class A{
some variables;
public void a()throws Excepion1,Exception2{....}
}
class B extends A{
variables...
public void a()throws E2,E3{.....}
}
Qns:
here override of methods occurs or not,ore else wil give
any compilation error or run properly..plz tell me briefly
whts happening with the above codes....
Answer Posted / sunita
Overriding methods cannot change the signature of the
overridden method. but runtime exception r not present in
signature so u can only add the runtime exception in
overriden method.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Explain the advantages of packages in java?
What is get () in java?
Can we initialize the final blank variable?
Is void a data type?
How do you compare arrays in java?
Difference between string s= new string (); and string s = "abv";?
Explain access specifiers?
Is 0 true or is 1 true?
What is tree node in java?
Explain about the dynamic behavior of core java?
Why do you canvas?
Difference between throw and throws?
Java Compiler is stored in JDK, JRE or JVM?
What’s the difference between applets and standalone program?
why using interface interface ?