The difference between Immutable and Variable

When used as nouns, immutable means something that cannot be changed, whereas variable means something that is variable.

When used as adjectives, immutable means unable to be changed without exception, whereas variable means able to vary.


check bellow for the other definitions of Immutable and Variable

  1. Immutable as an adjective:

    unable to be changed without exception.

    Examples:

    "The government has enacted an immutable law."

  2. Immutable as an adjective (programming, of a variable):

    not able to be altered in the memory after its value is set initially.

    Examples:

    "[[constant Constants]] are immutable."

  1. Immutable as a noun:

    something that cannot be changed

  1. Variable as an adjective:

    Able to vary.

    Examples:

    "variable winds or seasons; a variable quantity"

  2. Variable as an adjective:

    Likely to vary.

  3. Variable as an adjective:

    Marked by diversity or difference.

  4. Variable as an adjective (mathematics):

    Having no fixed quantitative value.

  5. Variable as an adjective (biology):

    Tending to deviate from a normal or recognized type.

  1. Variable as a noun:

    Something that is variable.

  2. Variable as a noun:

    Something whose value may be dictated or discovered.

    Examples:

    "There are several variables to consider here."

  3. Variable as a noun (mathematics):

    A quantity that may assume any one of a set of values.

  4. Variable as a noun (mathematics):

    A symbol representing a variable.

  5. Variable as a noun (programming):

    A named memory location in which a program can store intermediate results and from which it can read them.

  6. Variable as a noun (astronomy):

    A variable star.

  7. Variable as a noun (nautical):

    A shifting wind, or one that varies in force.

  8. Variable as a noun (nautical, in the plural):

    Those parts of the sea where a steady wind is not expected, especially the parts between the trade-wind belts.