Flashcards
Final Keyword
Cards in this deck (5)
- 1What is final Keyword?- Final in Java is a keyword
- It is used to specify an entity can be assigned only once
-The keyword final comes into the picture for restricting user
- final can be applicable to variables, methods and class - 2Usage of Java final keyword- before an instance variable
- before a method
- before a class - 3final instance variable- final variables can not be reassigned
- if we try to do will get compiler error - 4final before a method- final methods cannot be overridden
- if we try to do will get compiler errors - 5final before a class- Final class can not be extended
- If we try to do will get compiler error
Information
- Description
- Flashcards on Final Keyword, created by BLU BLU on 24/01/2025.
- Created by
- BLU BLU
- Views
- 0
- Rating
More on Java Classes, Objects and Methods