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


Please Help Members By Posting Answers For Below Questions

What are heap memory and stack memory and what are memory tables.

547


Why string is immutable with example?

564


What are user defined exceptions?

631


What does += mean coding?

553


What are the main concepts of oops in java?

633






What state does a thread enter when it terminates its processing in java programming?

610


What is method overloading in JAVA? Why is it not present in C ?

615


What is final access modifier in java?

624


Can we start a thread twice in java?

542


What is the difference between serializable and externalizable interfaces?

607


Explain different states of a thread in java?

630


How does hashmap work in java ?

572


What is string variable?

599


What is java basic concept?

566


What is collection api?

646