What is final?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is final?
Rating:
In Java, final is a keyword. It has the following impact on variables, methods, and classes:
- If a variable declaration is preceded by the final keyword, then its value cannot be changed in the program.
- If in a method declaration, the method name is preceded by the final keyword, then that method cannot be overridden.
- If in a class declaration, the class name is preceded by the final keyword, then that class cannot be inherited.
Rating:
Was this information helpful?
Other articles
- What is the purpose of the String length() method?
- What is multiplicity?
- What is a roll back?
- What is the XOR operator?
- What is a MIDlet?