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 in Java are implicitly public and abstract. When a class implements an interface, the implementing methods must be declared as public (or broader, but public is the only valid broader access). You cannot reduce the visibility of interface methods - they must remain public to maintain the interface contract.