can abstract class have constructor how can you achive
this ?
Answer Posted / bhargava
You cannot crate the constructor for an abstract class
directly. But you can create constructor for subclass for
an abstract class by making new class sub class for the
abstract class.
| Is This Answer Correct ? | 1 Yes | 7 No |
Post New Answer View All Answers
What do you mean by ternary operator in java?
What are the differences between Java 1.0 and Java 2.0?
What is the difference between reader/writer and inputstream/output stream?
What do you understand by the term polymorphism?
Difference between class#getinstance() and new operator ?
What is the difference between quicksort & mergesort? When should they be used? What is their running time?
how come we know the object is no more used in the class?
Garbage collection in java?
In case of inheritance what is the execution order of constructor and destructor?
How to display arraylist values in java?
What is the use of arraylist class in java?
Explain java thread life cycle.
What is api in java?
Explain how can you debug the Java code?
Is java hard to learn?