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

Definitely the sub class inherits the static method in
super class.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we pass a primitive type by reference in java? How

518


What is a method in java?

544


What do you mean by Function Overloading in java?

611


What is the basic concepts of OOPS?

675


Can one thread block the other thread?

595






What is the static import?

573


What do you know about the garbage collector?

600


What is the difference between serial and throughput garbage collector?

567


Explain about the performance aspects of core java?

540


What does indexof mean?

522


Can an interface extend another interface?

582


Can private class be extended java?

551


Distinguish between a predicate and a function?

556


Can I declare class as static or private?

531


Can a static method be overridden in java?

552