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
Why doesn’t the focus feature on the tag work in every circumstance?
Explain about thread synchronization inside a monitor?
What is the purpose of the finally clause of a try-catch-finally statement?
How would you detect a keypress in a jcombobox?
What are the purpose of introspection?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
Why won’t the jvm terminate when I close all the application windows?
What are the different approaches to represent an inheritance hierarchy?
What is table mutation and how do you avoid it?
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
how to use debug in my elipse to solve problems that exist in my project
What happens when a thread cannot acquire a lock on an object?
Can we sent objects using Sockets?
What is the form of storage space in java?
What is the difference between the session.update() method and the session.lock() method?