Can you have a constructor in abstract class?
Answer Posted / sadiq
Yes. Abstract class can have constructor.
But abstract class cannot be instantiated,how we can call
constructor? Using super()(calls super class constructor) in
the subclass which extends abstract class.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between heap and stack memory?
Where can I find jdk in my computer?
What are the differences between forwarding () method and sendredirect() methods?
What is object of class in java?
Is integer passed by reference in java?
What is a char in java?
What are namespaces in java?
What are adapter classes?
Write a function to find out longest palindrome in a given string?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is a jit compiler?
Can we declare main () method as non static?
how to open and edit XML file in Weblogic???
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..