Will it be called overriding if I do not change the
parameters or return type, instead throw a different
exception in the method signature.
Answer Posted / prakash
An Overridden method can throw lesser exceptions or no
exception and any new Runtime exceptions
An overridden method can't throw any new checked exception
or broader exceptions than its base class method.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of the finally clause of a try-catch-finally statement?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What is ioc concept & explain it?
what are the activation groupworks?
How to implement RMI in Java?
What is the purpose of the notify() method?
Describe activation process?
Explain phantom read?
What do you know about seam?
what is handle?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What are the call back methods in entity bean?
Why use POJO when I can use hashmap
Name three subclasses of the component class?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!