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
What must a class do to implement an interface?
Can you control when passivation occurs?
Which containers use a border layout as their default layout?
What value does read() return when it has reached the end of a file?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
Difference between DurableSubscription and non- DurableSubscription?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
When is the best time to validate input?
What are transaction attributes?
How would you create a button with rounded edges?
What classes of exceptions may be caught by a catch clause?
Explain what is orm?
Why does the tag url-encode javascript and mailto links?
What is the purpose of the wait(), notify(), and notifyall() methods?
How to pass parameters in RMI?