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 call by value prevents parameter value change?
What do you mean by default constructor in java?
Can a static class have a constructor java?
Can we have multiple public classes in a java source file?
What is the static field modifier?
What does || || mean in math?
How to handle a web browser resize operation?
Can we sort set in java?
What does method mean?
What is stringreader?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
What is the public method modifier?
What is meant by data hiding in java?
Can a hashset contain duplicates java?
Is it possible to use Semaphore/ Mutex in an Interrupt Handler?