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

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

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

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

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

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

Вопрос 106. What do you understand by private, protected and public?

These are accessibility modifiers. Private is the most restrictive, while public is the least restrictive. There is no real difference between protected and the default type (also known as package protected) within the context of the same package, however the protected keyword allows visibility to a derived class in a different package.

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

Вопрос 107. What happens to a static var that is defined within a method of a class ?

Can't do it. You'll get a compilation error

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

Вопрос 108. What does the 'final'?? keyword mean in front of a variable? A method? A class?

FINAL for a variable: value is constant. FINAL for a method: cannot be overridden. FINAL for a class: cannot be derived

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

Вопрос 109. What is the final keyword denotes?

final keyword denotes that it is the final implementation for that method or variable or class. You can't override that method/variable/class any more.

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

Вопрос 110. What is the difference between a static and a non-static inner class?

A non-static inner class may have object instances that are associated with instances of the class's outer class. A static inner class does not have any object instances.

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

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

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