Can you have a constructor in abstract class?
Answer Posted / dileep
Yes you can have a constructor in abstract class but you
should not instansiated directly you have to write one
subclass extends the abstract class.
| Is This Answer Correct ? | 12 Yes | 1 No |
Post New Answer View All Answers
What is tostring () method?
How do you implement singleton class?
State some advantages of java?
Difference between vector and arraylist.
Can we use String with switch case?
What is difference between float and double?
Differentiate between stringbuffer and stringbuilder in java.
Explain the difference between comparator and comparable in java?
What are synchronized methods and synchronized statements in java programming?
Explain about fail safe iterators in java?
Can we override private method in java?
Does set allows null in java?
What is encapsulation in java?
Why call by value prevents parameter value change?
What is array sorting in java?