What is the use of an abstract variable?

1 votes
219 views
Siya Chandra asked 21-Dec-2017 in Technology by Siya Chandra

What is the use of an abstract variable?

1 Answer

0 votes
Harsh kumar srivastava answered 21-Dec-2017 by Harsh kumar srivastava

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

I hope it's informative for you...