State two features of a constructor.

Views 30

Answer:

Features:

  1. Automatic Invocation: A constructor is automatically called when an object is created.
  2. No Return Type: A constructor does not have a return type, not even void.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.