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
What are keywords in programming?
What are the methods used to implement for the key object in the hash map?
What do the thread?class methods run() and start() do?
why we use merge option in hybernate pls give a ex snippet
Which collection is ordered in java?
How do you call a reference in java?
How an object is serialized in java?
What is import java util arraylist?
Is hashmap thread safe?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is the use of volatile in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is ternary operator?
What is the difference between notify and notifyall method?