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 is an interface be able to extend more than one interface but a class can’t extend more than one class?
Write a program in java to create a doubly linked list containing n nodes.
What programs use java?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
How do you compare characters in java?
Can a singleton class be inherited?
Write code to implement bubble sort in java?
What sorting algorithm does javascript use?
what is the constructor and how many types of constructors are used in java?
What is the use of coding?
How do you reverse a string in java?
How to perform binary search in java?
What is compareto () in java?
What does s mean in regex?
Why we use multi threading instead of multiprocessing?