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 / dipesh
this will throw complie error b'coz u r overirding the
method & u overirdng method cant throw exceptions which is
not being thrown by overirded method hwevr ovrindng method
can throw runtime exceptions
Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
What is a vector in java?
What are the topics in core java?
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
Why is static used?
What do you mean Abstraction in java?
how to one war file class to another war file class?
What is jpa specification?
does java support pointers?
What is meant by distributed application? Why are we using that in our application?
What is the primitive type short?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..
What is string and its types?
What exactly is java?
what do you mean by stream pipelining in java 8? Explain
Will set allow duplicates in java?