Answer Posted / aditya ganjiwale
Its there to be able to initialize the abstract class
internal state.
Lets say you would like to assign two variables, you would
have to do this for every implementation, but with
constructors in the abstract class you only need it once:
So every class inheriting only needs to call the
constructor, instead of assigning the values themself every
time.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the function of log?
What is abstract class constructor called?
What is an association?
What do you mean by thread safe?
Explain the importance of finally over return statement?
Is boolean a data type in java?
What is consumer interface?
How many bytes is a unicode character?
What is the default value of the local variables?
Is 0 true or false in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
How does linkedlist work in java?
What is java virtual machine? Explain
What is the difference between static (class) method and instance method?
What is the use of jtable?