can a static method be overridden

Answer Posted / vinay

Hi pals,
I agree with sushant who says that method overriding is not just using same name for the method.
But I want make some things more clear.
first of all Whats Method overriding , giving a new implementation for the parent or base class methods mean while maintaining same method definition.
If thats the case
You can override static methods by all means.
In this case only thing differs is way of accessing the methods , as its static access it by their class name.

And also

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is JTS?

1865


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

574


What are transaction attributes?

616


What are the services in RMI ?

1888


What is the relationship between local interfaces and container-managed relationships?

596






What is the diffrence between a local-tx-datasource and a xa-datasource?

582


How to implement RMI in Java?

2408


How to deploy Jar, War files in J2EE?

2177


What is an abstract method?

596


Which textcomponent method is used to set a textcomponent to the read-only state?

638


whats is mean by tiles in struts

1626


How primary key is implemented in Oracle?

1920


What is the difference between long.class and long.type?

571


What is Stream Tokenizer?

1733


What is message driven beam?

585