Assignment

noun

say it: “uh-SINE-ment” /əˈsaɪnmənt/

Putting a value into a variable with the = sign, replacing whatever it held before.

What is Assignment in Java?

Assignment — Storing a value in a variable with the = operator.

class Game {
    void updateScore() {
        int score = 10;
        score = score + 5;
    }
}

In a sentence

  • “The assignment total = total + price runs every time an item goes into the cart.”

Level: Novice · More Java terms at this level

Updated

In other subjects