Multiple choice technology programming languages

You can avoid re-typing doc comments by being aware of how the Javadoc tool duplicates (inherits) comments for methods that override or implement other methods. This occurs in three cases:

  1. When a method in a class overrides a method in a superclass

  2. When a method in an interface overrides a method in a superinterface

  3. For overridden constructors

  4. When a method in a class implements a method in an interface

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

Javadoc automatically inherits documentation when a method overrides a superclass method, overrides a superinterface method, or implements an interface method. This prevents redundant documentation. However, constructors cannot be overridden in Java, meaning they cannot inherit comments, making that option incorrect.