Online Classes

Results can only be achieved if you have the focused direction and crystal clear knowledge. To achieve this, you need a mentor. We will help you out by connecting with an expert mentor in the field.

Learn More


Final Keyword in Java

1 min 6 sec read

The final keyword in java is used to make declarations final. Once done you never ever change it. Sometimes programmer does not want that other programmer can use its complicated written methods or classes and extend the features using Inheritance in Java. So final keyword helps to get this job done. Let's explore the final methods, final variables & final classes.

final class

The final class can never be overridden. Yes, you cannot extend the class which is declared as final. The following figure clear your concept.

final method

The final method cannot be overridden by the subclass. Yes, you cannot extend the method also which is declared as final. The following figure will clear your concept .

final variables

The final variables cannot be changed once it is initialised. final variable cannot be assigned a new value. The following figure will clear your concept .

Try to execute what you have learnt

Easy to use online data structure compiler where you can execute the programs in your favourite programming language.
(C, C++, Python)

Open Compiler

HTML, CSS and Javascript Real time Web Editor

Execute your HTML, CSS and javascript code in real time with the web editor
(HTML, CSS, Bootstrap, Javascript)

Open Web Editor