Rules for creating Java constructor There are two rules defined for the constructor. ⫸ Constructor name must be the same as its class name ⫸ A Constructor must have no explicit return type ⫸ A Java constructor cannot be abstract, static, final, and synchronized
Download the Study24x7 App, so you can connect and collaborate.