---
title: "What is blank final variable in java?"  
description: "What is blank final variable in java?"  
author: "Royce Roy"  
published: 2015-04-01  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/2386/what-is-blank-final-variable-in-java  
category: "java"  
tags: ["java"]  
reading_time: 1 minute  

---

# What is blank final variable in java?

A final variable that is not initialized at the time of declaration is known as blank final variable.

If you want to create a variable that is initialized at the time of creating object and once initialized may not be changed, it is useful. For example PAN CARD number of an employee.

It can be initialized only in constructor.

```
class Student{  int id;  String name;  final String PAN_CARD_NUMBER;  ...  }  
```

## Answers

### Answer by Anonymous User

A final variable that is not initialized at the time of declaration is known as blank final variable.

If you want to create a variable that is initialized at the time of creating object and once initialized may not be changed, it is useful. For example PAN CARD number of an employee.

It can be initialized only in constructor.

```
class Student{  int id;  String name;  final String PAN_CARD_NUMBER;  ...  }  
```


---

Original Source: https://www.mindstick.com/interview/2386/what-is-blank-final-variable-in-java

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
