can a static method be overridden
Answer Posted / abid mehmood
An instance method can not override the static method of
its parent class.like
if parenet class contains
public static void test()
{
}
then in child class you can't override like this
public void test(){ //you can't override
}
or even like this
public static int test(){ //compile time error:type is
incompatibe with parent's test method.
}
| Is This Answer Correct ? | 4 Yes | 9 No |
Post New Answer View All Answers
Is the infobus client side only?
What value does read() return when it has reached the end of a file?
Why won’t the jvm terminate when I close all the application windows?
Explain what is orm?
Which component handles cluster communication in jboss?
Can I run seam with jdk 1.4 and earlier?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is ripple effect?
How are the elements of a borderlayout organized?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
What is message driven beam?
What is metaspace?
To identify IDL language what mapping mechanism is used?
What is meant by method chaining?
Which container method is used to cause a container to be laid out and redisplayed?