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


Please Help Members By Posting Answers For Below Questions

Why doesn’t the focus feature on the tag work in every circumstance?

569


Explain about thread synchronization inside a monitor?

2003


What is the purpose of the finally clause of a try-catch-finally statement?

559


How would you detect a keypress in a jcombobox?

678


What are the purpose of introspection?

680






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?

1558


Why won’t the jvm terminate when I close all the application windows?

754


What are the different approaches to represent an inheritance hierarchy?

588


What is table mutation and how do you avoid it?

1919


What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?

574


how to use debug in my elipse to solve problems that exist in my project

1766


What happens when a thread cannot acquire a lock on an object?

541


Can we sent objects using Sockets?

649


What is the form of storage space in java?

1743


What is the difference between the session.update() method and the session.lock() method?

558