Какие определения интерфейса MyInterface являются корректными?
Explanation
All declared methods are public in intefaces, public keyword is optional. Abstract keyword is optional too. As they are applied by default, they are redundant and should not be explicitly declared.
Interface fields are constants and have to be initialized.
Interfaces can have method definitions but methods myst be declared with default keyword.

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Продовжуйте вивчати
тести з Java
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести