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
Why do we need data serialization?
What is method overloading and method overriding?
Is there a jre for java 11?
Can we override final method?
What is a 16 bit word?
What is the difference between length and size in java?
What are the types of java?
Explain features of interfaces in java?
What is the difference between an object-oriented programming language and object-based programming language?
What are "class access modifiers" in Java?
What are different type of exceptions in java?
What is difference between array and arraylist in java?
What is the technique adopted to create an immutable class?
What is the difference between interface & abstract class?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?