Java Final Keyword
1 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

❖ The final keyword can be used to prevent class inheritance or to prevent method overriding. ❖ So if we declare class method as a Final then that method cannot be override by the child class. ❖ Same as method if we declare class as a Final then that class cannot be extended any more

More Like This

CSCE 111 Final Flashcards
14 questions

CSCE 111 Final Flashcards

RapturousSunflower avatar
RapturousSunflower
Java Immutability and Final Variables
15 questions
Use Quizgecko on...
Browser
Browser