O'Reilly logo
  • Aadil Hussain thinks this is interesting:

  • Constructors are special methods defined in a class that create and return an object of the class in which they’re defined.
  • Constructors have the same name as the class, and they don’t specify a return type—not even void.
  • User-defined constructors are defined by the developer.
  • From

    Cover of OCA Java SE 8 Programmer I Certification Guide


    constructor is used to create Object of the class