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 / eswar
As per my knowledge static method can't be subclass and
override.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Write a program to find the whether a number is an Armstrong number or not?
What is a condition in programming?
What is a method signature java?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
What is a byte string?
What is the purpose of java?
What is static class
Which is better singleton or static class?
What do you understand by the term polymorphism?
What is difference between == and === in js?
What is anagram word?
What do you mean by collectors in java 8?
What is difference between class and object in java?
Should you use singleton pattern?
What are the main uses of the super keyword?