Programming Languages Java Subjective
Sep 24, 2025

What is the purpose of the final keyword in Java?

Detailed Explanation
The final keyword can be used with: Variables (makes them constants), Methods (prevents method overriding), Classes (prevents inheritance, like String class). Final variables must be initialized and cannot be reassigned.
Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback