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????
Answer Posted / 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 |
Post New Answer View All Answers
Is integer immutable in java?
Is static variable stored in heap?
What does += mean in java?
What is a string token?
Explain about static nested classes in java?
What is consumer interface?
Can we use string in switch case in java?
Mention the default values of all the elements of an array defined as an instance variable.
What is a ternary operator in java? What is an interface?
Explain about member inner classes?
Give me example of derived data types.
How do you convert bytes to character in java?
What is the driver class?
What are methods?
What modifiers may be used with an inner class that is a member of an outer class in java programming?