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
Addition to previous section relative word 5th one was Putrid ans: rotten, also there was prob. in 1st section on bucket weight ans:10kg, also there was a prob. on train speed to find bridge length ans:800 mtrs.
What is canonical name in java?
What are the methods used to implement for the key object in the hash map?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What if static is removed from main method?
Mention some interfaces implemented by linked list in java.
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What is a percentage sign called?
What is == and === in javascript?
What is the tradeoff between using an unordered array versus an ordered array?
What is reflexive association?
What is an anonymous class in java?
How do constructors use this() and super()?
Is string is a keyword in java?
What are the main concepts of oops in java?