Какие определения интерфейса 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
Зарегистрируйся сейчас
или Подпишись на будущие тесты