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 / ramana

As per my knowledge static method can not be inhertated ,
but we use the same concept provideing that method hidding
concept.i.e we should not override the super class static
method in subclass.we just declare in subclass under
hidding concept.

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between path and classpath variables?

482


What is tree in java?

481


Is singleton class thread safe?

524


What is the symbol for average?

506


What is the difference between a synchronized method and a synchronized block?

597






What do you mean by singleton class in java?

503


Can final class have constructor?

490


What is a double?

583


Why set do not allow duplicates in java?

569


What is method reference?

509


What is literal example?

556


Explain the difference between association, aggregation and inheritance relationships.

545


can java object be locked down for exclusive use by a given thread? : Java thread

516


What is a lock or purpose of locks in java?

578


What is java and their uses?

542