Search Interview Questions
| 3348 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|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 ?|