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 |
Why is stringbuffer faster than string?
What is the purpose of the system class in java?
For technical interview question please sir send me because tomorrow my interview
What is Mutex (Mutual Exclusion Object) ?
Is arraylist an object in java?
What is the difference between abstract class and interface?
Is char * a string?
Explain the relationship between the Canvas and Graphics class?
What is an arraylist in java?
What are the two types of streams offered by java 8?
What are selection structures?
What is the difference between equals() and == in java?