answersLogoWhite

0

data type refers to the kind of value that is held by a particular variable. For ex: an int variable contains integer value, a string holds a alpha numeric value etc.

variable refers to the name of a value using which we can refer to this value.

Ex:

public int age = 28;

here int is the data type and age is the variable.

User Avatar

Janick McGlynn

Lvl 10
3y ago

What else can I help you with?

Related Questions

What is the difference between Variable and Data Type of Variable?

Let's look at an example. int a = 1; Here our variable is 'a' which is of type 'int'


What is the difference between the independent and dependent variables in the experiment?

Dependent variable is your data, independent variable is what you are testing. Ex. Sunlight would be the independent variable and a plants growth would be the dependent variable.


The difference between fixed and variable inputs?

difference between fixed and variable inputs


Why is a controlled variable important in a controlled experiment?

because knowing what is the difference between objects and produres and data is important


Difference between variable resistor and rheostat?

The difference between a variable resistor and a rheostat is the same as the difference between six and half a dozen.


What the difference between a variable and control?

The difference between a controlled variable and a variable is in their state. A controlled variable is something which is rigid and constant while a variable is liable to change and inconsistent.


WAP to show the difference between a variable and static variable?

difference between constant and static variables in java


What is the difference between a variable being tested and a variable being controlled?

The difference between these both is that the control is what stays the same in an experiment and the variable is what changes.


What is one difference between a variable and a numerical expression?

The variable.


What is the difference between value type parameters and reference type parameters?

When a variable is passed by value, the function receives a copy of the variable. When a variable is passed by reference, the function receives a reference, or pointer, to the original data.


What is the difference between fix and variable mortgages?

The difference between fixed and variable mortgages are that in a fixed mortgage, the rate can not change. In a variable mortgage, the rate changes with time.


In oops what is the difference between class variable and variable?

Class Variable is a subset of Variables.