can a static method be overridden

Answer Posted / narasimha rao bodagala

Example:
class A {
static void something () {}
}

class B extends A {
static void something () {}
}

....
A anA = new B ();
anA.something ();

so, the compiler will not check the which one is to create
or which one is called method.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you give me a simple example of using the requiredif validator rule?

603


What are the design considerations while making a choice between using interface and abstract class?

541


What is aop(assepct oriented programing)?

580


Difference between DurableSubscription and non- DurableSubscription?

1714


How to determine SGA site?

1907






What is the map interface?

609


What restrictions are placed on the values of each case of a switch statement?

535


What is the relationship between an event-listener interface and an event-adapter class?

554


How can I avoid validating a form before data is entered?

550


What are the pros and cons of detached objects?

547


Explain the advantages and disadvantages of detached objects.

576


AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?

1630


Why are some of the class and element names counter-intuitive?

571


When a thread blocks on i/o?

563


Explain how will the struts know which action class to call when you submit a form?

520