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
extending thread class or implementing runnable interface. Which is better? : Java thread
What is the meaning of immutable regarding string?
What is variable declaration and definition?
What does exclamation mean in java?
how can you take care of mutual exclusion using java threads? : Java thread
What is the benefit of singleton pattern?
How to change value in arraylist java?
What is difference between arraylist and list in java?
What is use of static method?
This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }
What is the difference between hashmap and hashtable? What is an interface?
What is bytecode in java ?
What is the use of private static?
How is string immutable in java?
Which api is provided by java for operations on set of objects?