---
title: "What is Final Keyword in Java?"  
description: "What is Final Keyword in Java?"  
author: "Satish Jain"  
published: 2017-12-20  
canonical: https://answers.mindstick.com/qa/31855/what-is-final-keyword-in-java  
category: "technology"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# What is Final Keyword in Java?

What is Final [Keyword](https://www.mindstick.com/blog/389/java-script-void-keyword) in [Java](https://www.mindstick.com/articles/1702/introduction-to-java)?

## Answers

### Answer by Hemant Patel

![What is Final Keyword in Java?](https://answers.mindstick.com/questionanswer/0621f40b-e8fb-45ec-a7b4-6834b0849232/images/92f22b3b-05fa-4a8b-b8af-6b02eed49d93.png)***\***

***Final keyword*** is used to make a constant variable, whose value is never changed. We can also say that when *we use the final keyword with variables in Java, to specify it's values are not to be changed*.

In Java, we declared a constant using the **Keyword Final**. Value can be assigned to the variable defined using Final keyword is only once and after assignment, the value of constant (a variable declared using final keyword) can't be changed. In Java, the **Final keyword** is used to restrict the user. You can use the Final keyword with many contexts in Java. Which are as follows: (i). variable (ii). method (iii). class While we declared a Class by using Final Keyword, it can't inherit by a class or in other words **it cannot be subclassed.****\*****Hope it's informative...***


---

Original Source: https://answers.mindstick.com/qa/31855/what-is-final-keyword-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
