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
Can inner class be public in java?
Is there any limitation of using inheritance?
What is super in java?
What is data movement?
Can we call the constructor of a class more than once for an object?
What is reverse function?
What is the history of java?
List two java ide’s?
Why wait and notify methods are declared in object class?
What exactly is java?
What is a java predicate?
What are static blocks in java ?
What is size () in java?
what is thread in Java ?
What is the java idl system?