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
Which sorting algorithm is best in java?
What is nextline method in java?
What is advantage of java?
How to change value in arraylist java?
Describe 2 different ways to concatenate two strings.
Which access specifier can be used with class ?
What do you understand by the bean persistent property?
what is mena by object block any what is the use of that
What is a native method in java programming?
Why java is considered as platform independent?
What is an error in java?
Is null an object in java?
If an object is garbage collected, can it become reachable again?
What is == mean?
How does hashset work in java?