Computer Applications

Pick the correct answer.

  1. A constructor has exactly the same name as its defining class.
  2. A constructor method does not have a return type.
  3. A constructor can be invoked only via the new operator.
  4. All of the above

Java Constructors

5 Likes

Answer

All of the above

Reason — All the statements are correct.

Answered By

2 Likes


Related Questions