Task

Demonstrate any means your language has to prevent the modification of values, or to create objects that cannot be modified after they have been created.




final int immutableInt = 4;
int mutableInt = 4;
mutableInt = 6; //this is fine
immutableInt = 6; //this is an error