To add :

  • How new creates a new object via constructor in java
  • Condition in which you are required to add a constructor in java

Important things to be noted for constructor

  • Method with the same name as constructor can be created and no compile time or runtime exception will occur.

Leave a Comment