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

When parseint method can be used?

542


What is functional interface in java?

515


what is the significance of listiterator in java?

624


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

559


Is empty in java?

580






What does exclamation mean in java?

575


Which language is java?

546


What is a map in java?

553


Why do we use predicate in java?

558


Does java have extension methods?

530


What are dot operator queries?

629


What is overloading and overriding in java?

661


can I implement my own start() method? : Java thread

554


Why vector class is used?

543


Explain the importance of finally over return statement?

610