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
What is the final class?
how to open and edit XML file in Weblogic???
Is Java a dying language?
Is list thread safe in java?
explain copyonwritearraylist and when do we use copyonwritearraylist?
What is class level lock ?
Why are the destructors for base class and derived class called in reverse order when the program exits
What is the difference between assignment and initialization?
Explain throw keyword in java?
When can an object reference be cast to an interface reference in java programming?
Can we extend singleton class?
Explain creating threads by extending thread class ?
explain local datetime api in java8?
Explain spliterator in java8?
what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread