Values & References8 / 16
Up next

final variables

import java.util.ArrayList;

class Main {
    public static void main(String[] args) {
        final int LIMIT = 3;
        System.out.println(LIMIT);
        final var list = new ArrayList<Integer>();
        // final blocks reassignment, not mutation of the object
        list.add(1);
        System.out.println(list);
    }
}
What you're solving

the binding is fixed, the object may not be