Can you have a constructor in abstract class?

Answer Posted / ranjan

We can write a method name same as class which is called
constructor in the abstract class , but as a abstract class
can not be instanciated so that method used as a general
method.

but no error would be there...

Is This Answer Correct ?    31 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the size of integer?

798


What is internal variable?

712


Can we create our own daemon thread?

714


What is treeset and treemap in java?

766


Can a final variable be manipulated in java?

737


Can we cast any other type to boolean type with type casting?

715


Is void a keyword in java?

776


What is an immutable object? How do you create one in java?

794


How are multiple inheritances done in Java?

825


What are structs in java?

770


How is it possible for two string objects with identical values not to be equal under the == operator?

719


What is java’s garbage collected heap?

706


What is variable argument in java?

751


How do you create a bulleted list?

790


What is the difference between an interface and an abstract class?

737