Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
superclass
:
Мова контенту: English
Русский
Whether the class inherits the constructors of its superclass?
superclass
What will be the result of the following code execution? class Super { Super() { System.out.println("Super contructor"); } } public class Main extends Super { Main() { this(1); System.out.println("Main() contructor"); } Main(int i) { System.out.println("Main(int) contructor"); } public static void main(String [] args) { new Main(); } }
superclass
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести