java constructor chaining

Java Constructors: Using super()

The magic of super() We have seen earlier, the usage of this() statement where it is used to call in between the constructors belonging to the same class. Here no inheritance is involved. Now in this posting, let us learn how to call a super class constructor from subclass constructor.…

What is Java Constructor?

Java constructor plays a very important role in coding. Simply a constructor looks like method but is very different from method and purpose. Following tutorial gives complete authority over Java constructors. First let us know where exactly constructors fit in Java coding. A constructor is that one which is called…