---
title: "What is the use of an abstract variable?"  
description: "What is the use of an abstract variable?"  
author: "Siya Chandra"  
published: 2017-12-21  
canonical: https://answers.mindstick.com/qa/31895/what-is-the-use-of-an-abstract-variable  
category: "technology"  
tags: ["java programming"]  
reading_time: 1 minute  

---

# What is the use of an abstract variable?

What is the use of an abstract [variable](https://www.mindstick.com/articles/1807/objective-c-data-types-variables-object-creation)?

## Answers

### Answer by Hemant Patel

Hi Siya,

We can't declare an abstract variable in Java. Because There is nothing like 'abstract variable'.

In Java, variable can't be declared as abstract. We can only be declared classes and methods using abstract keyword. Or we also say that only classes and methods can be declared as abstract. For detailed explanation about abstract keyword, you can visit [ABSTRACT CLASS IN JAVA](https://www.mindstick.com/Articles/11946/abstract-class-in-java)\
***I hope it's informative for you...***


---

Original Source: https://answers.mindstick.com/qa/31895/what-is-the-use-of-an-abstract-variable

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
