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 difference between jvm and jre? What is an interface?
What is the Scope of Static Variable?
What is tochararray in java?
Can a class have an interface?
What is the difference between stream and buffer?
What is treemap in java?
What is multithreading and its advantages?
Can you declare an interface method static?
What is lexicographically smallest string?
What is final modifier?
Explain the public class modifier?
What are streams in java 8?
What is a java object and java application?
Under what conditions is an object’s finalize() method invoked by the garbage collector?
What is hashing principle in java?