answersLogoWhite

0


Best Answer

A private variable is one that is accessible only to the current class and cannot be accessed by any other class, including the ones that extend from it.

A final variable is one that cannot be modified once it is initialized and assigned a value.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the difference between private variable and final variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

what is the difference between final and static keywords?

static: we can use the keyword static either to method or to a variable. when we declare to a method,(eg: public static void main(String args[]),we can use this method without any object. when we use to a variable,there will be only one instance of that variable irrespective of how many objects that get created of that class. Final: Usage of final to method or to a variable makes them as constant. It's value cannot be changed...


What is the difference between a constant and a variable in java programming language?

A constant in Java is defined using the "final" modifier. For instance: final double Density_Of_Water = 1.000; would set Density_Of_Water to 1.000. This value can not be modified throughout the program because "final" told the compiler that this value would not change. A variable however, can be changed by the user throughout the program.


What is the difference between inuyasha and inuyasha the final act?

there us no really big difference between them inuyasha final act is basicley the closing of the whole anime


What is the difference between abstract class and final class?

20


When do you declare a variable method and a class final?

When There is No Need to Change the Values of the Variables In Entire lifetime of That variables then we must use that Variable as Final Variable.


Difference between expenditure on final goods and expenditure on intermediate goods?

The difference between intermediate goods and final goods is in their nature. Intermediate goods are finished goods which can be used to make other good like wool. The final goods are sold to consumers like a woolen coat.


What are the difference between interim and final order Explain on your own words?

Sure! The difference between an interim is that an interim is kinda like a progress report in the middle of every quarter. A final is at the end of each semester. Huge difference.


What is difference between the initial and final depth of water?

To find the difference between the initial and final depth of water is to subtract the final depth by the initial depth. The initial depth of what is what the water depth starts at and the final depth is the depth of the water once it is finished filling up.


What is the difference between the initial price of 55000 and the final cost of 29999?

25001


What is the mathematical difference between final and initial time called?

Time interval


What is the difference between a variable and a non variable?

A variable changes. It varies. A non variable does not change. It is constant. For example if I write a mathematical expression such as x + 1, then x is a variable. Its value can be whatever value we choose. However 1 is a non variable. Its value is 1 and never changes from 1. In a scientific experiment a variable would be something that you changed from one test to another. A non variable would be something that remained constant from test to test. As a final example: the speed at which light travels in a vaccum is a constant. It is referred to by the letter c which stands for the universal constant. However, the speed at which your car travels is a variable. It changes.


What is the difference between unconfirmed diagnosis and the final diagnosis?

The difference is that the first is unconfirmed, while the second one is assume to be confirmed.