Can you have a constructor in abstract class?

Answer Posted / naveen

a abstract class can contain abstract methods and concrete methods, to initiate and use these method we can create the object and also a constructor

Is This Answer Correct ?    7 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between arraylist and list in java?

572


What is the format specifier?

504


What is the primary benefit of encapsulation?

547


What is the difference between equals() and == in java?

513


What is string and its types?

602






How can we create an immutable class in java?

576


What is flag in java?

519


what is the swingutilities.invokelater(runnable) method for? : Java thread

539


How do you reverse a list?

542


Does a class inherit the constructors of its superclass in java programming?

510


What is multithreading and its advantages?

561


Explain wrapper classes in java?

520


What are wrapped classes in java programming?

574


How to add menushortcut to menu item?

557


What is the difference between throw and throws in java?

546