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
What is the size of integer?
What is internal variable?
Can we create our own daemon thread?
What is treeset and treemap in java?
Can a final variable be manipulated in java?
Can we cast any other type to boolean type with type casting?
Is void a keyword in java?
What is an immutable object? How do you create one in java?
How are multiple inheritances done in Java?
What are structs in java?
How is it possible for two string objects with identical values not to be equal under the == operator?
What is java’s garbage collected heap?
What is variable argument in java?
How do you create a bulleted list?
What is the difference between an interface and an abstract class?