Multiple choice technology programming languages

All interface methods must be declared as public when implemented in a class.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Interface methods are implicitly public. When a class implements an interface, the implementing methods must be public. They cannot have weaker access (package-private or protected) because that would violate the interface contract.