What is the role of the `final` keyword in Java?
`Final` in Java can be used to mark variables, methods, or classes. It means they cannot be modified. For instance, a final variable cannot be reassigned.
Great answer! Youâ€™ve explained the role of `final` accurately.
Can you explain how the `final` keyword is applied to methods and classes, and what effect it has on inheritance?