can a static method be overridden
Answer Posted / karthik narayanan
Basically there are two concepts, one is overriding and the
other is hiding. When a subclass implements the same static
method as its parent class, then subclass will basically
hide the parents static implementation. So when you call
subclasses static method, only subclass method will get
executed. To execute the parents static method you have to
explicitly call it. But with instance method, you can hide
as well override the parent implementation, override in the
sense you can call the parent implementation by
super.dosamemethod()...
Hopefully this clears the debate..
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
what are RemoteObjects?
Explain phantom read?
How a component can be placed on Windows?
Why are component architectures useful?
difference between ejb,struts,hibernate,spring and jsp
How to determine SGA site?
which type of objects reference will be given to client?
What method is invoked to cause an object to begin executing as a separate thread?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Define prototype?
Explain about local interfaces.
What is the difference between the font and fontmetrics classes?
Why won’t the jvm terminate when I close all the application windows?
When a thread blocks on i/o?