Can we inherit the constructor in a Class?please give one
example.
Answer Posted / arvind patil
we cannot inherit the constructor.
But using the keyword super we can give a call
to the base class constructor
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What are the two ways in which thread can be created?
Can we override private methods?
Differentiate between postfix and prefix operators in java.
What does the “static” keyword mean? Can you override private or static method in java?
Is object a data type in java?
What are the kinds of polymorphism?
Why string is not a wrapper class?
can java object be locked down for exclusive use by a given thread? : Java thread
Is java util list serializable?
What is a super method?
What is the difference between super class & sub class?
What is anagram in java?
What are 5 boolean operators?
What are the 4 types of research methods?