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



In Inheritence concept, i have a static method in super class and i am inheriting that class to on..

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

In Inheritence concept, i have a static method in super class and i am inheriting that class to on..

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

Post New Answer

More Core Java Interview Questions

What is the difference between stored procedure & function?

0 Answers  


What is difference between char array and string?

0 Answers  


What are the major drawbacks of external iteration?

0 Answers  


how can you say that java is independ language

2 Answers   TCS, Wipro,


What does sizeof return?

0 Answers  






What is Locale class?

1 Answers   MySoft,


Do you need to import math in java?

0 Answers  


What is meant by overloading?

0 Answers  


How to send a request to garbage collector?

4 Answers  


if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.

4 Answers   Wipro,


what is heap memory?

0 Answers   Tavant Technologies, Zensar,


Is hashset sorted in java?

0 Answers  


Categories