In Inheritence concept, i have a static method in super
class and i am inheriting that class to one sub class.in
that case the static method is inherited to sub class or
not????
Answers were Sorted based on User's Feedback
Answer / venkat
In java supporting for the static overriding concept but
the values are static values(means entire application values
will come one type).
ex:
class A
{
public static void test()
{
}
}
class B extends A
{
public static void test()
{
}
}
| Is This Answer Correct ? | 0 Yes | 2 No |
Answer / sunitha
the static method will be inherited to teh sub class.only
fucntions declared as 'final' are not inherited
| Is This Answer Correct ? | 5 Yes | 8 No |
Can we return null in java?
What all access modifiers are allowed for top class ?
What does provide mean construction?
What’s the difference between constructors and other methods?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Write a program to print the pattern given below
What is the difference between serial and throughput garbage collector?
What is a condition in programming?
how to deploy tomcatserver to weblogic server? write d following steps?
relation between list and linked list
what do you mean by marker interface in java?
Which collection does not allow duplicates in java?