Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Restricting inheritance' - 1 question(s) found - Order By Newest|
|Ans. 1. Enforcing composition over inheritance|
2. Restricting overriding of certain methods
3. Final methods are faster than regular instance methods
4. Enforcing Immutability
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  final class   reasons for final class   restricting inheritance  object oriented programming (oops)  oops concepts expert|
|What is a Final Class ?|
|Does use of Final class enforces composition over Inheritance in Java ?|
|Which of the following is false for final ?|
|Why Java has final class ?|