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

first understand meaning of static keyword,when we use
static keyword before any data type or before method then
single copy of that method or variale crated in memory,and
use that copy for only that particular class,means as far my
knowledge we can not use static method in subclass.

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the final class?

545


how to open and edit XML file in Weblogic???

1537


Is Java a dying language?

562


Is list thread safe in java?

480


explain copyonwritearraylist and when do we use copyonwritearraylist?

530






What is class level lock ?

604


Why are the destructors for base class and derived class called in reverse order when the program exits

1694


What is the difference between assignment and initialization?

544


Explain throw keyword in java?

603


When can an object reference be cast to an interface reference in java programming?

569


Can we extend singleton class?

525


Explain creating threads by extending thread class ?

570


explain local datetime api in java8?

549


Explain spliterator in java8?

592


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

485