answersLogoWhite

0

A variable is a memory address that holds a value. A constant is simply a variable that does not change value.

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What are constants and how are they are different from variables?

Variables change, constants do not.


Name a common Java library class that has public instance variables?

The Math class has public variables - defined as final, of course - for the mathematical constants PI and E.


How are constants and variables important in devoloping java programs?

Without variables, you won't be able to do much programming. Variables is where you store data; such data may change over time. And computer programming is all about manipulating data.


What is the difference between variables and constants in java?

constant is does not change the value of during the excution of programvariable it changes the value during the excution of program


What are constants and how they are different from variables?

Constants are fixed numbers that never change, they always stay the same. Variables are number that can change, they 'Vary'.


Attributes and methods of uppercase in java?

In Java toUppercase() is a method of the class String: https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#toUpperCase()


What variables that do not change?

The ones called constants.


What are variables and constants in algebra?

ask your father


What are constants and variables in a lab experiment?

In a lab experiment, constants are the conditions that are kept the same throughout the experiment to ensure that the results are valid and reliable. Variables, on the other hand, are factors that can change; they are typically categorized into independent variables (which are manipulated) and dependent variables (which are measured). Managing constants and variables is crucial for establishing a clear cause-and-effect relationship in the experiment.


How are constant variables different from independent variables?

Constants stays the same independent variables is the variable that is being manipulated


What is the use of constants and variables in programs?

to store values


Enum in java?

Enum in java is a keyword which is introduced in JDK 1.5 and its a type like Interface and Class.Enum constants are implicitly static and final and you can not change there value once created. Enum in Java provides type-safety and can be used inside switch statment like int variables. Since enum is a keyword you can not use as variable name and since its only introduced in JDK 1.5 all your previous code which has enum as variable name will not work and needs to be refactored.