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 are heap memory and stack memory and what are memory tables.
Why string is immutable with example?
What are user defined exceptions?
What does += mean coding?
What are the main concepts of oops in java?
What state does a thread enter when it terminates its processing in java programming?
What is method overloading in JAVA? Why is it not present in C ?
What is final access modifier in java?
Can we start a thread twice in java?
What is the difference between serializable and externalizable interfaces?
Explain different states of a thread in java?
How does hashmap work in java ?
What is string variable?
What is java basic concept?
What is collection api?