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 the methods of object class ?

539


What is the difference between an argument and a parameter?

511


what is the constructor and how many types of constructors are used in java?

509


What is the use of predicate in java 8?

471


Can constructor be static or final?

627






What is variable in java?

499


Is arraylist dynamic in java?

503


How many wrapper classes are there in java?

512


How do you create a sop?

508


What are thread safe functions?

486


What does I ++ mean?

566


How will you print number in reverse (descending) order in BST.

556


How do weakhashmap works?

564


What is tree in java?

469


What is the parse method in java?

545