can a static method be overridden
Answer Posted / partha
@ Mayank
Static methods are *NEVER* ever be overridden, even if you
try to override a static method of the super class in your
subclass, it will compile because in this you are simply
redeclaring the static method of your superclass in your
subclass. Redeclaring a method is not the same as overriding
a method.
The bottomline is
** STATIC METHODS CAN NEVER BE OVERRIDDEN **
Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
What is bean? Where can it be used?
Which component handles cluster communication in jboss?
What is the relationship between local interfaces and container-managed relationships?
What is in-memory replication?
What is the RMI and Socket?
Can I run seam outside of jboss as?
Can I have an action without a form?
what is handle?
What is the difference between session and entity beans?
What are the different approaches to represent an inheritance hierarchy?
How to deploy Jar, War files in J2EE?
What classes of exceptions may be caught by a catch clause?
Is there a guarantee of uniqueness for entity beans?
int x=5,i=1,y=0; while(i<=5) { y=x++ + ++x; i=i+2; } System.out.println(x); System.out.println(y); System.out.println(i); How to solve this? Please explain!
Are enterprise beans allowed to use thread.sleep()?