Самые популярные вопросы и ответы для интервью и онлайн-тесты
Образовательная платформа для подготовки к интервью, онлайн-тестов, учебных материалов и живой практики

Развивайте навыки с целевыми маршрутами обучения, пробными тестами и контентом для подготовки к интервью.

WithoutBook объединяет вопросы для интервью по предметам, онлайн-практику, учебные материалы и сравнительные руководства в одном удобном учебном пространстве.

Подготовка к интервью

Core Java вопросы и ответы для интервью

Test your skills through the online practice test: Core Java Quiz Online Practice Test

Вопрос 126. How can a subclass call a method or a constructor defined in a superclass?

Use the following syntax: super.myMethod(); To call a constructor of the superclass, just write super(); in the first line of the subclass‘s constructor.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 127. Can an anonymous class be declared as implementing an interface and extending a class?

An anonymous class may implement an interface or extend a superclass, but may not be declared to do both.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 128. When does the compiler supply a default constructor for a class?

The compiler supplies a default constructor for a class if no other constructors are provided.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 129. What is composition?

Holding the reference of the other class within some other class is known as composition.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Вопрос 130. What is aggregation?

It is a special type of composition. If you expose all the methods of a composite class and route the method call to the composite method through its reference, then it is called aggregation.

Это полезно? Добавить комментарий Посмотреть комментарии
 

Самое полезное по оценкам пользователей:

Авторские права © 2026, WithoutBook.